async-script-loader icon indicating copy to clipboard operation
async-script-loader copied to clipboard

Loading in <head>, instead the page's body

Open mitchellvanw opened this issue 4 years ago • 1 comments
trafficstars

Hi, I'm considering to use svelte-google-analytics (and subsequently async-script-loader). The one thing that's holding me back is that github#beyonk-adventures/async-script-loader will load scripts into document.body. Google recommends loading GTM inside <head>.

What're your thoughts on this?

mitchellvanw avatar Jan 13 '21 13:01 mitchellvanw

It's a reasonable point.

I don't see a reason why this couldn't be an option passed to the loader, so you could tell it where to inject the scripts?

antony avatar Mar 11 '21 00:03 antony