Speed demon.

by Jaakko Nissiat 2011-09-23 17:57:19

I made some modifications to the code again. Actually a quite large mod to the way javascript is loaded. I rewrote parts of the Yii CClientScript to use jsmin.php(I based this on an Yii extension which was iirc ClientScriptPacker).

Now if I make a modification to any of the included javascript files, the minified source packs get automatically regenerated and served with cache-busting. This adds the inconvenience of having to add all used js-libraries in a common init function for all controllers.

At the same time I rewrote the javascript loading so that I have an entry script which loads all other .js files, even jquery. What's left to do, is extracting the modules from the entry script file to their own pack.

The site should feel quite snappy now, as I got the loading(and initial display) of the pages squeezed under half a second.

And now that is out of the way(It really took this long, as my spare time was so scarce during the last ~2 months and I used most of it for reading js books.) I might be able to concentrate more on the actual content and features of the site. ;-)

But there is of course the sprites, db optimizations, replacement of yii components with custom ones and whatnot in the horizon...

Pallokorva Javascript
Just cause it's simple doesn't mean it's not super hlepufl.
by: Derex
Just cause it's simple doesn't mean it's not super hlepufl.
by: Derex
FQUZ0X , [url=http://ccczdmvjjhtq.com/]ccczdmvjjhtq[/url], [link=http://urykrrplksbk.com/]urykrrplksbk[/link], http://lvrykjkcibtr.com/
by: fdlxjgfsr
FQUZ0X , [url=http://ccczdmvjjhtq.com/]ccczdmvjjhtq[/url], [link=http://urykrrplksbk.com/]urykrrplksbk[/link], http://lvrykjkcibtr.com/
by: fdlxjgfsr
Vt8Ube <a href="http://fhjfsulrwpfs.com/">fhjfsulrwpfs</a>
by: ybvfmojlxgw
Vt8Ube <a href="http://fhjfsulrwpfs.com/">fhjfsulrwpfs</a>
by: ybvfmojlxgw

Fields with * are required.

Please enter the letters as they are shown in the image above.
Letters are not case-sensitive.