BoxLang 🚀 A New JVM Dynamic Language Learn More...

JavaScript Defer

v2.0 Modules
A nifty interceptor to move JS blocks to the bottom of your page

When this module is activated, it will take JavaScript blocks and move them to the bottom of the page.  This can be handy for performance since browser will not continue loading the page until JavaScript files are downloaded and parsed.  This may cause issues if you use inline calls to document.write().
Drop this module in a folder inside your module's directory and reinit.  If you're using CommandBox (and you should be) just type:

install javascript-defer
  • 1.0 -- 6/17/2013 -- initial interceptor created
  • 2.0 -- 10/2/2014 -- Converted to a module

$ box install JavaScript-Defer

No collaborators yet.
 
4.50 / 2
  • {{ getFullDate("2013-06-17T22:44:25Z") }}
  • {{ getFullDate("2016-06-08T22:43:08Z") }}
  • 5,464
  • 2,971