[Support request] Best way to handle Javascript

Home Forums Support [Support request] Best way to handle Javascript

Home Forums Support Best way to handle Javascript

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1676822
    Purab

    Hi, Google’s new algorithm update is around the corner; the last time it happened I lost 60% of my traffic. But this time around, I have already started preparing and fixing my site.
    I heard that the new update will be about Core Web Vitals, and possibly Mobile-only indexing. While optimizing my site, https://gamzo.in, I am facing a major issue, Javascript.
    Scripts are contributing to about 70% of the total page load time. These scripts are ads and analytics, and I can’t get rid of them.

    I want to know the best way to handle the scripts. Like can we stop them to load until a user-interaction like scroll?
    If yes, how do I do it?
    Sample page: https://gamzo.in/noble-esports-in-india-a-tale-of-fallacy-and-jealousy/
    PS: I am a noob in web dev.

    #1676948
    David
    Staff
    Customer Support

    Hi there,

    you can use the Flying Scripts plugin to defer the google advert scripts:

    https://wordpress.org/plugins/flying-scripts/

    In the Plugins settings there is a Keywords field for the scripts you want to defer. Add: adsbygoogle.js

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.