Skip to content
Shannon Deminick edited this page Apr 17, 2013 · 4 revisions

ClientDependency Framework

What is a 'Rogue File'?

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 <script> or tags instead of being registered in with the Client Dependency framework.
  • Though the framework 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 requests relying on this method as opposed to registering them explicitly with the Client Dependency framework. Rogue files are processed by the ClientDependencyModule and it converts all JS and CSS paths found in the <script> or tags found in the html output with the composite file handler path.
  • Enabling and disabling this functionality is done in the configuration section: with the boolean properties: processRogueJSFiles, processRogueCSSFiles
Clone this wiki locally