clsanford wrote:I've tried applying the bundling option for JS and CSS in the Admin. i also set debug=false in the web.config, but i'm not even sure if it's working. What is supposed to happen when the setting is working correctly? What should i see on the source of the pages?
Hi,
In the nopCommerce you can find three types of minification. CSS minification, JS minification and since the 4.20 version also HTML minification. To minify JS, CSS and HTML files, comments and extra spaces need to be removed, as well as crunch variable names so as to minimize code and reduce file size. The minified file version provides the same functionality while reducing the bandwidth of network requests.
1. CSS and JS minification
Before minification each file will be visible and used. So if you have 15 different JS and CSS files, nopCommerce will load each file independently. Before minification you will see something similar to:
After minification each file will be combined, has removed extra spaces, comments. So the final result will be equal to:
2. HTML minification
HTML Minification will have impact on the whole site, so if you minify the HTML you will see it without problems, minified HTML looks like this:
Hope that helped.
Best regards,
Patryk