This link has been bookmarked by 152 people . It was first bookmarked on 22 Dec 2006, by Jon.
-
01 Jul 09
-
24 Jun 09
-
17 Jun 09
-
16 Jun 09
-
12 May 09
Ethan GardnerAs some of you may know, I am currently working on a content management system. Although I am not able to share all of the code - it is proprietary after all - I already made one debugging tool public. This tool can be used to test some common techniques
-
07 May 09
-
05 May 09
-
31 Mar 09
-
26 Mar 09
Christine FürstMake your pages load faster by combining and compressing javascript and css files
-
26 Feb 09
-
17 Feb 09
-
05 Feb 09
-
04 Feb 09
-
27 Jan 09
-
17 Jan 09
Mark JedrzejczykHow to compress javascript and css files
-
02 Jan 09
-
29 Dec 08
-
28 Dec 08
-
27 Dec 08
-
24 Dec 08
ya wesRewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1 RewriteRule ^javascript/(.*\.js) /combine.php?type=javascri
-
28 Nov 08
-
29 Oct 08
-
02 Oct 08
-
20 Sep 08
-
12 Sep 08
-
10 Sep 08
-
09 Sep 08
-
08 Sep 08
-
19 Aug 08
-
08 Jul 08
-
09 Jun 08
Hrvoje BlažekovićKako iskombinirati razne js skripte css-ove u jedan ile koji se onda šalje sa servera....
javascript css optimization performance compression php cache
-
09 May 08
-
22 Apr 08
-
13 Apr 08
-
27 Mar 08
-
21 Mar 08
-
18 Mar 08
-
As some of you may know, I am currently working on a content management system. Although I am not able to share all of the code - it is proprietary after all - I already made one debugging tool public. This tool can be used to test some common techniques which decreases the bandwidth generated by feed consumers. Today I am going to make a second tool public - including source code. It is a method to decrease the loading time of a page by combining all the different css or javascript files and compress them.
-
Take for example the following URLs:
http://www.creatype.nl/javascript/prototype.js
http://www.creatype.nl/javascript/builder.js
http://www.creatype.nl/javascript/effects.js
http://www.creatype.nl/javascript/dragdrop.js
http://www.creatype.nl/javascript/slider.jsYou can combine all these files to a single file by simply changing the URL to:
http://www.creatype.nl/javascript/prototype.js,builder.js,effects.js,dragdrop.js,slider.js -
onfigurating this script is easy. First you need to download and configure the
combine.phpscript. By default this script look in thejavascriptandcssdirectory in the root of your website, but if you are currently using different directories you can change these values at the top of thecombine.phpscript. Upload thecombine.phpscript to the root of your website. Secondly you need to create acachedirectory that is writable by the web server. Again, by default this script will look for thecachedirectory in the root of the website, but you can change this in thecombine.phpscript. Finally you need to create or modify your.htaccessfile. If you do not have a.htaccessfile you can create it in the root of your website and add the following lines. If you already have an preexisting.htaccessfile you can simply add the following lines to the file:RewriteEngine On RewriteBase / RewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1 RewriteRule ^javascript/(.*\.js) /combine.php?type=javascript&files=$1
-
Note: if your preexisting
.htaccessfile already uses URL rewriting you do not need to add the first two lines. You can simply add the last two lines to the bottom of the.htaccessfile.
-
-
17 Mar 08
combining and compressing javascript and css files
CSS optimization performance compression cache php JavaScript
-
14 Mar 08
-
04 Mar 08
First Lastdefault this script look in the javascript and css directory in the root of you
-
02 Mar 08
-
23 Feb 08
-
21 Feb 08
-
16 Feb 08
-
12 Feb 08
-
03 Jan 08
-
24 Dec 07
-
11 Dec 07
-
04 Dec 07
Antonio JozzolinoCompressor de codigo javascript e css escrito em php. Utilizando-o com o mod_rewrite do apache, permite a compactacao em tempo real.
-
01 Dec 07
-
23 Nov 07
-
19 Nov 07
-
14 Nov 07
-
10 Nov 07
-
05 Nov 07
-
23 Oct 07
-
17 Oct 07
-
13 Oct 07
-
05 Sep 07
deepxpExcellent tip / script to make all your JS files load faster..
-
21 Aug 07
-
09 Aug 07
-
01 Aug 07
-
27 Jul 07
-
26 Jul 07
Eiji FukushimaRewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1
-
20 Jul 07
-
17 Jul 07
-
25 Jun 07
Fogday StudiosMake your pages load faster by combining and compressing javascript and css files
-
18 Jun 07
-
15 Jun 07
-
13 Jun 07
-
04 Jun 07
-
31 May 07
-
28 Apr 07
-
26 Apr 07
-
25 Apr 07
-
17 Apr 07
-
16 Apr 07
-
13 Apr 07
-
12 Apr 07
-
11 Apr 07
batamireMake your pages load faster by combining and compressing javascript and css files
javascript css performance optimization compression php cache webdev
-
10 Apr 07
Marco DisselMake your pages load faster by combining and compressing javascript and css files As some of you may know, I am currently working on a content management system. Although I am not able to share all of the code - it is proprietary after all - I already mad
-
16 Mar 07
AJ ChanMake your pages load faster by combining and compressing javascript and css files
-
10 Jan 07
-
02 Jan 07
-
22 Dec 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.