• Hi,

    Please review the files within the dropbox link.

    In the screenshot it shows that your plugin is loading on all pages – which is not necessary if i have selected the plugin to only work on alcohol pages. This load on all pages is increasing speed load time by approximately 9 seconds to 15 seconds at worst.

    Are you able to provide me a edited version or a code to make it not load on all pages?

    Please look into a fix or solution – this is a huge problem, other than that the plugin is great.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @supportvdes,

    The scripts do need to be on all pages as hooks can be called that the plugin would be unaware of otherwise. Though we could perhaps defer the shortcode one to only be included if a shortcode is present. But, that script in question is 6kb so shouldn’t be taking any more that a couple to milliseconds to load. It also make no Ajax Requests on load, and you screenshot is for XHR request.

    So, while the “originator” is claiming to be age gate, the actual XHR request that seem to be slowing things down look like they belong to Woocommerce conversation tracker (the wooptpm_get_cart_items bit). They have a whole thread about the page speed of their plugin here.

    If you aren’t using the shortcode, you could dequeue the script – but as above I don’t think that’s the root of the issue.

    
    wp_dequeue_script('age-gate-sc');
    

    Thanks
    Phil

Viewing 1 replies (of 1 total)

The topic ‘Site slow’ is closed to new replies.