akbkhome

Smoking toooooo much PHP



Software Engineer
To resolve the scripts loading speed issues I recommend you to gzip ext-all.js file and add the following lines to your Apache conf file to send gziped file in case browser excepts gzip encoding:
<VirtualHost ... >
<FilesMatch "\\.js.gz$">
ForceType text/javascript
Header set Content-Encoding: gzip
</FilesMatch>
<FilesMatch "\\.js$">
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !".*Safari.*"
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule (.*)\.js$ $1\.js.gz [L]
ForceType text/javascript
</FilesMatch>

</VirtualHost>


#1 - Andrew Bidochko ( Link) on 13 Dec 2007, 21:43 Delete Comment
Gziping pages
We are already gziping in apache. - but the multiple <script> lines are the real killer - merging down to a single file (2 including extjs) makes a huge difference...
= This probably makes more difference to the end user experience than the gzipping, as the socket open/ request takes about the same time as transfering the small files...
#2 - Alan Knowles ( Link) on 13 Dec 2007, 22:05 Delete Comment
Andrew Bidochko
Did you try to use a js-builder tool http://code.google.com/p/js-builder/ which is used to build exr-js itself?

I believe using js-builder you can easily create a build for your js files and easily generate a single javascript file.
#3 - Andrew Bidochko ( Link) on 14 Dec 2007, 03:51 Delete Comment
JS Builder
I LOVE JS builder! My religion.
#4 - Adam ( Link) on 09 Jan 2008, 21:59 Delete Comment


Name
Email
Homepage
Comment Title
Comment
 
Contact me at alan@akbkhome.com