CMS MADE SIMPLE FORGE

ScriptDeploy

 

[#6266] option for javascript loaders

avatar
Created By: Jonathan Schmid (Foaly*)
Date Submitted: 2011-03-15 03:34

Assigned To: Jeremy Bass (jeremybass)
Resolution: Accepted
State: Closed
Summary:
option for javascript loaders
Detailed Description:
option to partially or entirely slow load javascript files. see
https://spreadsheets.google.com/ccc?key=0Aqln2akPWiMIdERkY3J2OXdOUVJDTkNSQ2ZsV3hoWVE#gid=0

History

Comments
avatar
Date: 2011-03-16 04:35
Posted By: Jeremy Bass (jeremybass)

can you expand on this please.. not sure I follow.  tk -Jeremy
      
avatar
Date: 2011-03-16 18:37
Posted By: Jonathan Schmid (Foaly*)

I mean sending a single line to the browser that loads the actual scripts:

$script('analytics.js');

(example: $script.js)
      
avatar
Date: 2011-03-16 18:54
Posted By: Jeremy Bass (jeremybass)

sure I'm already trying to get a rest type effect with the pretty urls to load
parts so I'll see if I can fit it in there..
      
avatar
Date: 2011-04-16 16:36
Posted By: Jeremy Bass (jeremybass)

FR[#6266] option for javascript loaders --- added param defer which you use with
path or a group to do the lazyload of the script onload. It does use js in the
output so usage should be limited to once but that is way you have the groups.
and if you use the path you still can use the CSV so you get something like
{ScriptDeploy
path="/modules/ScriptDeploy/includes/test.js,/modules/ScriptDeploy/includes/test2.js"
defer=true} .. few fixes to the header file.
      
avatar
Date: 2011-04-16 16:36
Posted By: Jeremy Bass (jeremybass)

in SVN
      
Updates

Updated: 2011-04-16 16:36
state: Open => Closed

Updated: 2011-03-16 18:54
resolution_id: => 6