• Resolved Muhammad Junaid

    (@mj00712)


    Hi. How can I lazy load only the AdSense ads below the fold and disable lazy load for the ads above the fold?

Viewing 6 replies - 1 through 6 (of 6 total)
  • serpentdriver

    (@serpentdriver)

    This is not possible, at least with the LiteSpeed LScache plugin. But there are various providers who can usually make such a solution possible via a plugin that is subject to a fee.

    Thread Starter Muhammad Junaid

    (@mj00712)

    Will using a Defer JS Script in litespeed cause compatibility issues with other plugins? Additionally, can you recommend any plugins that are suitable for lazy loading JavaScript?

    serpentdriver

    (@serpentdriver)

    LiteSpeed LScache Plugin already supports different kind of deferred loading of Javascript and you should use these function, because it is not only optimized for this plugin, but also for the cache. There is a high risk that issues will happen if you mix it with other plugins. In this case nobody is able to support you.

    Regarding recommendation for plugins that support lazy load of ads please use Google or any other search engine. Such plugins are mostly not for free and therefore they are not available/listed at WordPress.

    Thread Starter Muhammad Junaid

    (@mj00712)

    What if we want to exclude some ad units from the delayed JS feature applied by Litespeed cache plugin?

    serpentdriver

    (@serpentdriver)

    You can exclude certain Javascript from being lazy loaded or deferred loading, but ads are loaded global by 1 singe Javascript file, so it is not possible to exclude specific ads from this. However, this is not a limitation that only affects the LiteSpeed cache plugin, but affects any other cache or optimization plugin.

    But there would be the possibility to influence at least the rendering behavior with “content-visibility”. Just search for content-visibility what this feature is all about.

    [Post updated]

    serpentdriver

    (@serpentdriver)

    Please keep in mind that many ads are generated via header bidding. This means that delayed loading of ads can affect the quality of the ads and thus affect the ad prices.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Lazy Load below the Fold Adsense ads’ is closed to new replies.