beyonk-group/async-script-loader

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

mitchellvanw opened this issue · 1 comments

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?

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?