#299 new

Feature request: Minification of minification -Performance improvements for themes

Reported by Imran | August 11th, 2011 @ 06:47 PM | in 2.0.5 (closed)

At least 5 requests for javascript files need to be made:

1) YUI2 js files
2) YUI3 js loader
3) src files in {script} tag for view templates
4) the individual theme's js files
5) exponent.js.php

This is 4 too many. As for the first 4, they can easily be combined into one:

1) I recommend in expJavascript, combine the YUI2, YUI3 and src files that are passed to the minifier in one shot rather than separating them out. i.e. the same as what is done in the CSS minifier in expCSS.
2) Also in expTheme::head you can define an optional array of javascript files for your specific theme which can also be then passed on to the minifier in expJavascript. Alternatively you could simply pick up all the files that are located in /themes/mytheme/js and minify them along with the other JS files. This second solution would make it consistent for themers because they know that the css directory files in my theme are stitched to the site css's and the js directory files are stitched to the site js's.

This will cut down the 5 requests to 2 (assuming it stays below the 1500 character limit).

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket


Referenced by