FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

JavaScript Defer

v2.0 Public
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().

Dependencies (0)


Dev Dependencies (0)


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
  • Jun 17 2013 10:44 PM
  • Jun 08 2016 10:43 PM
  • 4,044
  • 1,583
  • 16