News for hackers. Stuff that matters.
Re:Script-injected "async scripts" considered harmful by radio4fan on Wednesday May 21, 2014 @05:03AM (#7777247)
Another option is to inject the script:

A. At onDOMContentLoaded and B. Inside a setTimeout(func, 0) block

Then the browser's loading indicator will stop before the script has been loaded, executed and all its assets loaded.

Useful for social media widgets, etc.

There are no comments on this comment yet.