Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter abdullahmaqsood

    (@abdullahmaqsood)

    I tried adding unique strings extracted from all the inline JavaScript to the JS Deferred / Delayed Excludes, but it didn’t work. Maybe the JS Deferred / Delayed Excludes in the tuning is not working.

    Thread Starter abdullahmaqsood

    (@abdullahmaqsood)

    when i load the site my header won’t show until i hover over it. for pc it might be not noticeable but in mobile i have to clicked it i have tried /wp-content/ and some inline js but it doesn’t seems to be targeted and i am using jet menu plugin and its mega menu widget

    var scripts = document.getElementsByTagName(“script”);
    for (var i=0;i<scripts.length;i++) {
    if (scripts[i].src) console.log(i,scripts[i].src)
    else console.log(i,scripts[i].innerHTML)
    }

    i have tried to get all scripts on external giving me their src while for internal giving me their innerhtml
    for example:
    ‘class RocketElementorAnimation{constructor(){this.deviceMode=document.createElement(“span”),this.deviceMode.id=”elementor-device-mode-wpr”,this.deviceMode.setAttribute(“class”,”elementor-screen-only”),document.body.appendChild(this.deviceMode)}_detectAnimations(){let t=getComputedStyle(this.deviceMode,”:after”).content.replace(/”/g,””);this.animationSettingKeys=this._listAnimationSettingsKeys(t),document.querySelectorAll(“.elementor-invisible[data-settings]”).forEach(t=>{const e=t.getBoundingClientRect();if(e.bottom>=0&&e.top<=window.innerHeight)try{this._animateElement(t)}catch(t){}})}_animateElement(t){const e=JSON.parse(t.dataset.settings),i=e._animation_delay||e.animation_delay||0,n=e[this.animationSettingKeys.find(t=>e[t])];if(“none”===n)return void t.classList.remove(“elementor-invisible”);t.classList.remove(n),this.currentAnimation&&t.classList.remove(this.currentAnimation),this.currentAnimation=n;let s=setTimeout(()=>{t.classList.remove(“elementor-invisible”),t.classList.add(“animated”,n),this._removeAnimationSettings(t,e)},i);window.addEventListener(“rocket-startLoading”,function(){clearTimeout(s)})}_listAnimationSettingsKeys(t=”mobile”){const e=[“”];switch(t){case”mobile”:e.unshift(“_mobile”);case”tablet”:e.unshift(“_tablet”);case”desktop”:e.unshift(“_desktop”)}const i=[];return[“animation”,”_animation”].forEach(t=>{e.forEach(e=>{i.push(t+e)})}),i}_removeAnimationSettings(t,e){this._listAnimationSettingsKeys().forEach(t=>delete e[t]),t.dataset.settings=JSON.stringify(e)}static run(){const t=new RocketElementorAnimation;requestAnimationFrame(t._detectAnimations.bind(t))}}document.addEventListener(“DOMContentLoaded”,RocketElementorAnimation.run);’

    for e.g this is one of the script if i want to exclude it from being delay, how can i exact the partial string from it.

    Thread Starter abdullahmaqsood

    (@abdullahmaqsood)

    Not working i put jet-menu or jet- but not working for me

    Thread Starter abdullahmaqsood

    (@abdullahmaqsood)

    I have put it on delay. Maybe this is the reason for the issue. Can you tell me how to exclude the menu? I do not have any coding knowledge. I tried to go to the settings and paste the links of the Jet Menu plugin js files in tuning, but it did not exclude. And I have also applied animation on a text, it also starts only on hover.

    Thread Starter abdullahmaqsood

    (@abdullahmaqsood)

    There is a delay but still this issue is coming and when I put it on deferred it gets fixed but my site speed gets slow.

Viewing 5 replies - 1 through 5 (of 5 total)