Skip to main content
Topic: Asynchronous JavaScript (Read 2185 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Asynchronous JavaScript

Asynchronous JavaScript
Version 1.0.0 For Elk 1.0.x (Hook, No File Modification)


Enable Asynchronous JavaScript loading by adding "async" just before javascript src link which is rendered as blocking by google pagespeed insights.


Thank you for using/testing it.


Yours friendly,
Abu Fahim Ismail.

BSD License. Feel free to modify accordingly but keep author's link if it is in there somewhere. ;)

 


#Change Logs
@Version 1.0.0
- Initial release. Originally using defer but then change to async in this initial release.

Re: Asynchronous JavaScript

Reply #1

It appears to improve performance.  One possible bug is BBC/smileys for the post box sometimes do not display or sometimes only partially.  Have I done something incorrectly?

 

Re: Asynchronous JavaScript

Reply #2

I think I posted somewhere else, in general, any place that has inline javascript it may break because the inline call expects to have the function, but loading the script asynchronously may delay the loading itself and end up with a call to a function not yet defined.
Bugs creator.
Features destroyer.
Template killer.