Combining Javascript and CSS files to lower loading times. |
[eluser]zwippie[/eluser]
I have not tested this to the max, but what I have is the following structure: Code: /ci (base folder for this ci installation) Content of /ci/.htaccess: Code: <IfModule mod_rewrite.c> Content of /ci/public/.htaccess: Code: <IfModule mod_rewrite.c> As you can see I used RewriteBase to get the paths right. Perhaps this can be done more elegant. Maybe the two .htaccess files can easily be combined. I'm not really a Rewrite guru. ![]() To get an early result, let's call some (existing) css files: http://localhost/ci/public/css/style.css,menubar.css The result is a page with both files as plain text. To call it from a view, use: Code: <link rel="stylesheet" type="text/css" href="http://localhost/ci/public/css/menubar.css,sitebuilder.css" /> Code: <scrrrrript type="text/javascript" src="http://localhost/ci/public/js/jquery.js,superfish.js"> As I said, I have not completely tested this, but it seems to work. |
Messages In This Thread |
Combining Javascript and CSS files to lower loading times. - by El Forum - 02-07-2008, 08:41 AM
Combining Javascript and CSS files to lower loading times. - by El Forum - 02-07-2008, 08:58 AM
Combining Javascript and CSS files to lower loading times. - by El Forum - 02-07-2008, 09:50 AM
Combining Javascript and CSS files to lower loading times. - by El Forum - 02-07-2008, 10:19 AM
Combining Javascript and CSS files to lower loading times. - by El Forum - 02-07-2008, 10:24 AM
Combining Javascript and CSS files to lower loading times. - by El Forum - 02-07-2008, 11:22 AM
Combining Javascript and CSS files to lower loading times. - by El Forum - 02-07-2008, 11:42 AM
Combining Javascript and CSS files to lower loading times. - by El Forum - 01-09-2009, 10:21 AM
|