I have the following html code:
Document>
You can create a Base64 URL out of the script and put it into the src!
I built a quick test to see it in action.
You should see an alert with Hello world!
last if defer
is working:
Doing it manually is a little laborious so if you have the luxury of compiling your HTML in some way (Handlebars, Angular, etc.) then that helps a lot.
I'm currently using: