This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
admin_menu:design:settings:start [2014/02/11 11:41] geojames [Also Combine CSS and JS libraries] |
admin_menu:design:settings:start [2014/12/16 17:27] (current) geojames |
||
---|---|---|---|
Line 7: | Line 7: | ||
The settings on this page control different aspects of how the design (templates, images, CSS, JS, etc.) work. Care should be taken when changing these, if something is done incorrectly it can result in a non-working website. | The settings on this page control different aspects of how the design (templates, images, CSS, JS, etc.) work. Care should be taken when changing these, if something is done incorrectly it can result in a non-working website. | ||
+ | |||
+ | ====== How these features can help ====== | ||
+ | |||
+ | These features can speed page load for your site by reducing the footprint of css/js code downloaded to operate you site. Many page analyzers recommend applying such features as mentioned here. The features here are designed to do the following: | ||
+ | |||
+ | **Combine js/css files** - This simply moves the contents of multiple files into a single file, to reduce the raw number of HTTP requests a visitor has to make for each page load. | ||
+ | |||
+ | **Minimize those js/css files** - This further improves things by making that one combined file as small as possible (without actually applying " | ||
+ | |||
+ | **Compression of those files** - This is a mathematical, | ||
+ | |||
+ | Some or all of these may not work on certain servers. Where they work, they' | ||
+ | |||
====== Media Location Settings ====== | ====== Media Location Settings ====== | ||
Line 81: | Line 94: | ||
If turning this on breaks the site, the most common cause is file permissions. | If turning this on breaks the site, the most common cause is file permissions. | ||
+ | Another less common cause: | ||
+ | Similarly, an incorrect value for the Site Setup > General Settings > Site URL setting can cause problems (presents as the combined css/js files missing all content). | ||
===== Clear Combined CSS & JS ===== | ===== Clear Combined CSS & JS ===== | ||
This button will appear if the main combine setting is enabled. | This button will appear if the main combine setting is enabled. | ||
Line 97: | Line 112: | ||
If this causes problems, make sure you do NOT have the advanced setting **Use Google Libraries API** enabled. | If this causes problems, make sure you do NOT have the advanced setting **Use Google Libraries API** enabled. | ||
+ | ===== Trim repeated whitespace from final HTML output ===== | ||
+ | |||
+ | This option uses the Smarty template engine' | ||
+ | |||
+ | In our testing with the default template set, the HTML source took approximately 50ms longer to generate, but was approximately 25% (roughly 10 KB) smaller. Your results may vary greatly based on your server' | ||
===== Use Google Libraries API ===== | ===== Use Google Libraries API ===== | ||
Line 165: | Line 185: | ||
If enabled, will add lines to the .htaccess file that will tell browsers to cache static CSS / JS files for about a month. | If enabled, will add lines to the .htaccess file that will tell browsers to cache static CSS / JS files for about a month. | ||
- | ==== .htaccess - Use mod_rewrite for Combined CSS/JS ==== | + | ===== .htaccess - Use mod_rewrite for Combined CSS/ |
Available when BOTH [[#Use .htaccess for geo_templates/ | Available when BOTH [[#Use .htaccess for geo_templates/ | ||
Line 187: | Line 207: | ||
==== Do NOT Automatically Include default.css in Combined CSS Contents ==== | ==== Do NOT Automatically Include default.css in Combined CSS Contents ==== | ||
- | Note: "Do NOT Automatically Include default.css in Combined CSS Contents" | + | Note: "Do NOT Automatically Include default.css in Combined CSS Contents" |
<tip c w> | <tip c w> |