ScriptCompression is active only if the module is installed in web.config. If not installed the Toolkit will use standard ASP.NET mechanisms (Page.ClientScript or ScriptManager if available) to load scripts so this component is purely optional. If not registered code will not fail. However, we recommend you install the module if you use the toolkit to optimize script loading.
For IIS 7:
pre IIS7:<configuration> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="ScriptCompressionModule" type="Westwind.Web.ScriptCompressionModule,Westwind.Web"/> </modules> </system.webServer> </configuration>
<configuration> <httpModules> <add name="ScriptCompressionModule" type="Westwind.Web.ScriptCompressionModule,Westwind.Web"/> </httpModules> </system.web> </configuration>
Once installed the module listens for wwSC.axd?r=ResourceID&t=TypeName Urls which are processed to provide embedded JavaScript resources in compressed form.
Note that if ScriptCompression is not installed scripts are loaded using either the ScriptManager (if one is loaded on the page) or Page.ClientScript object. As such the ScriptCompression module is optional but recommended.