We opted to move to compile time minification and bundling of all client side resources with InstantForum 2013. Previous versions of InstantForum managed this dynamically (scripts were bundled and minified at run-time). This worked great, but also added unnecessary load on the web server which could impact the performance of very busy sites - obviously defeating the original purpose. For InstantForum 2013 we opted to move to compile time minification and bundling.
NOTE: This article applies to InstantForum 2013 or above. Earlier versions of InstantForum use dynamic run-time script bundling and bundling minifcation.
What is Core.js
How is Core.js generated?
The "Core.js" file will only be generated from the various debug scripts only if Core.js does not already exists within the InstantForum JS folder and the "InstantASP_DebugMode
" application setting within the InstantForum web.config is set to true...
<add key="InstantASP_DebugMode" value="true"/>
For example our common.js file has dependencies on jQuery so jQuery must be loaded first.
Where is the Core.js included?
Core.js is added programmatically via the master page code-behind to the master page header element only if "InstantASP_DebugMode