Farcry 6 (and maybe 5.2.x) has the ability to bundle and cache a set of JS
and CSS files.

I have just discovered that the files do not all have to be in the same
directory :-)

To register your JS files use (I have this in
_serverSpecificRequestScope.cfm)

    <skin:registerJS id="jQueryJS"
                  baseHREF="/skin"

lFiles="/js/jQuery/jquery-autocomplete/jquery.autocomplete.js,/js/jQuery/
jquery.ga/jquery.ga.js,/js/jQuery/jquery.jqprint.js,/js/jQuery/qTip/jquery.qtip-1.0.0-rc3.js,/js/jQuery/flexigrid/flexigrid.js"
/>


To use them (mine is in displayHeaderStandard)
    <skin:loadJS  id="jQueryJS" />

This will create something like
/cache/jQueryJS--1271214201106-587D16C7207588E34BAC13C369531F8F-D41D8CD98F00B204E9800998ECF8427E-D41D8CD98F00B204E9800998ECF8427E.js

One single file for the browser to load


*The tip is*, do not use PACKed JS files - use the raw JS file
eg jquery.autocomplete.js not jquery.autocomplete.pack.js

It doesn't look like Farcry is PACKing the file, but it does seem to be
compressing it (remove excess white space)

-- 

AJ Mercer
http://webonix.net
http://twitter.com/webonix

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to