Skip to Main Content
function gsap(){
   if( is_page (18015)) {	
         wp_enqueue_script( 'gsap', '/wp-content/uploads/assets/gsap/gsap.min.js', array(), '3.11.4', 'all');	
         wp_enqueue_script( 'scrollTrigger', '/wp-content/uploads/assets/gsap/scroll-trigger.js', array(), '3.11.4', 'all');	
     }
  }
 add_action('wp_enqueue_scripts','gsap', 2);
// Sample comment for HTML
<div class="random">
    <img 
        fetchpriority="low"
        decoding="async"
        loading="lazy"
        width="600"
        height="400"
        src="/..jpg.webp"
        alt="random test alt tag">
</div>  
// After

 initImagePlaceholder() {        
    const posterUrlWebp = `https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`;
    const posterUrlJpeg = `https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;
    this.domRefImg.fallback.loading = this.posterLoading;
    this.domRefImg.webp.srcset = posterUrlWebp;
    this.domRefImg.jpeg.srcset = posterUrlJpeg;
    this.domRefImg.fallback.src = posterUrlJpeg;
    this.domRefImg.fallback.setAttribute('aria-label', `${this.videoPlay}: ${this.videoTitle}`);
    this.domRefImg?.fallback?.setAttribute('alt', `${this.videoPlay}: ${this.videoTitle}`);

    
/* Default comment*/

*{
   margin: 0;
   padding:0;
   box-shizing: border-box;
}