• Resolved elreddi

    (@elreddi)


    Hi,

    I need to enable JS delay to improve the performance of my website. But, this causes that only the header appears when loading the page. The rest of the page appears when you perform some interaction with the mouse. I need to exclude from JS delay the first section that contains post grid widgets (xrpo addons for elementor plugin). But so far I have not been able to find a way to get this first section to be excluded from the delay.

    Can you help me please?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter elreddi

    (@elreddi)

    Hi again, I just sent you the report as I have seen in other posts. Here is the report code: KFDYUSXC

    Thanks

    1.) Change delay to defer loading of Javascript
    or
    2.) Try to detect the relavant Javascript for this affected widget and exclude it from being lazy loaded.

    Plugin Support qtwrk

    (@qtwrk)

    please try

    
    Xpro
    xpro
    nonce

    and purge all

    Thread Starter elreddi

    (@elreddi)

    Hello,

    Thanks for your help CacheCrawler and qtwrk. As suggested, I added to “JS Deferred / Delayed Excludes” and there are no changes, same problem. If I also add them to “JS Excludes”, the xpro post grid not appear even if there is interaction with the mouse. Just a blank sections. I keep this configuration in the site, so you can see for your self.

    Did you really change Javascript option from delay to deferred?

    Thread Starter elreddi

    (@elreddi)

    Hi Cache Crawler. Yes, I am exploring all options. Of course I tried defer instead of delay. This option solves the problem with xpro post grid, but performance on core vitals drops to 70-75. That’s the reason I’m trying to delay JS. If I can’t get good performance scores, I’ll have to find another, lighter way to do the section.

    If you do not manage to exclude the relevant Javascript for the widget in question from the optimization, you only have the option to load Javascript deferred instead of delayed. Especially since the delayed option is just a cheat to fool the PageSpeed god. ?? To be fair, one could also say that this “masks” this cheat a bit. The actual problem lies with this widget or with the author of the widget, who obviously has no interest in programming in such a way that loading times are not affected.

    Anyway, maybe @qtwrk has another idea.

    Plugin Support qtwrk

    (@qtwrk)

    there are 3 JS exclude fields , please try add to them all and purge cache

    Thread Starter elreddi

    (@elreddi)

    Hello,

    I already tried it. If add the exclusions also to JS Excludes, the xpro post grid does not work, it loads just a blank space and 2 errors appear in the Chrome console: “caught ReferenceError: jQuery is not defined
    at xpro-widgets.js:1:25121″ and “caught ReferenceError: jQuery is not defined at jquery.cubeportfolio.min.js:1:10772”

    Sorry, but i’m not an expert and have no idea how to handle it.

    I may need to exlude also some jquery file?

    Plugin Support qtwrk

    (@qtwrk)

    yes, please exclude jQuery as well

    Thread Starter elreddi

    (@elreddi)

    Hi again,

    Thank you for your help. I contacted with the plugin developpers and it seems it is some issue related to the plugin. They are working on it and the solution will be implemented in a future udate.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Help to exclude from JS delay’ is closed to new replies.