DEV Community

Discussion on: Upgrading my website to JAMStack - 1 page at a time

Collapse
 
kiraieigh profile image
Kira Leigh

Have you tried diminishing the amount of tags that show up before initial page load/pushing them after?

AKA after 'window loaded' and DOM ready? Or async with the scripts?

Collapse
 
joelvarty profile image
Joel Varty

Totally - changing the load event timing made a pretty big difference, and I'm still working on removing tags that aren't totally necessary. Once I nail that down I'll post about it.

Thread Thread
 
kiraieigh profile image
Kira Leigh

Awesome! :)

Sometimes GTM gets bloated, and the best we can really do is prune things. Good luck, looking forward to the post about it :)