Developer forum

Forum » Feature requests » Performance: Minify standard dw scripts and stylesheets

Performance: Minify standard dw scripts and stylesheets

Morten Bengtson
Reply

The standard js and css files that comes with Dynamicweb are not minified. Will you consider minifying them - maybe as part of your build process?

Minifying these files can save about 30-80% in file size - and with 754 scripts and 345 stylesheets this could improve the performance a bit ;-)

Maybe you could provide both minified (.min.js, .min.css) and original version of the files that are used with modules in frontend so that developers are able to modify them if needed.

I know that we can do this minification ourselves, but that would get boring after a while as it needs to be done for each new release of Dynamicweb.

 


Replies

 
Gaetan Di Caro
Reply

I was just about to post a similar request :)

It would be very interesting to have automatic minifying capabilities (notably for custom js and css), especially for maintenance purposes.

IMO it could be in the form of a minifying module, in which you select the files you want to be minified. Then you can either launch the minifying manually, or have a button "save and minify" in the file editor interface (next to or instead of the other "save" buttons). It would save a copy of the file named xx.min.css or xxx.min.js (in the same folder as the source file or in a custom destination).

Nowadays it is something that's quite easy to do in .NET (see http://ajaxmin.codeplex.com/ for example).

Thanks !

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

+1 I totally agree that having built-in bundling and minification capabilities would be excellent. Should we copy this thread to the Feature Requests forum?

Imar