-
-
Notifications
You must be signed in to change notification settings - Fork 64
Rogue Files
Shannon Deminick edited this page Apr 17, 2013
·
4 revisions
Normally when using CDF you would register all of your dependencies using the CDF framework. However if you have a legacy project and simply have standard html <link> and <script> tags in your HTML (Rogue Files), CDF will automatically be able to detect these in the outputted html from ASP.Net and replace them with a compressed version!
- The term 'Rogue' files describes any JS or CSS file registered in the raw html markup using
scriptorlinktags instead of being registered in with the CDF. - Though CDF will ensure that these are compressed/minified (if you enable it in the configuration), it is not a recommended practice because these files cannot be combined and therefore there will be more http requests. It is recommended to register your dependencies property with CDF.
- Enabling and disabling this functionality is done in the configuration section:
rogueFileCompressionby defining for which paths and extensions to perform the replacements.
