I’m neither a javscript guru nor a dom expert. Thus I am looking for a bit of help in fine tuning one small aspect of page speed.
We lazy load images, social network buttons, third party ads and other static content.
We lazy load the entire resources not just the execution of available functionality of social network buttons and some third party ads.
We’d also like to lazy load the dfp gpt tags or at a minimum keep the gpt js calls from blocking the load of our js files as is now occurring. We use async and single request mode. We load our js file ondomload.
What’s the best way to do this?
Ads using gpt tags load in three parts, the first call is to the ad server javascript, the second define the ad slots, the third call fills the ad slots.
Lazy load the fill slot only?
Lazy load the second and third parts of the code, define and fill slot?
Lazy load the entire resource not just the execution of the available functionality?
Has anyone tried to lazy load the dfp gpt tags?