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 [2013/12/13 19:39] jonyo changes to how the google api setting works |
admin_menu:design:settings:start [2014/12/16 17:27] (current) geojames |
||
---|---|---|---|
Line 8: | Line 8: | ||
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. | ||
- | ===== Media Location Settings ===== | + | ====== 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 | ||
<tip c w> | <tip c w> | ||
Line 14: | Line 27: | ||
Most sites should leave these settings as they are.</ | Most sites should leave these settings as they are.</ | ||
- | ==== Alternate External Media Base URL ==== | + | ===== Alternate External Media Base URL ===== |
Most sites should **leave this blank**! | Most sites should **leave this blank**! | ||
Line 37: | Line 50: | ||
This is a very new ability and one that is not often used, so there may be snags, if you run into trouble using this feature please let us know! | This is a very new ability and one that is not often used, so there may be snags, if you run into trouble using this feature please let us know! | ||
- | ==== Template Set Folder ==== | + | ===== Template Set Folder |
This is the folder used for template sets, normally this is set to **geo_templates/ | This is the folder used for template sets, normally this is set to **geo_templates/ | ||
Line 51: | Line 64: | ||
<tip c w> | <tip c w> | ||
- | ==== JS Library Folder ==== | + | ===== JS Library Folder |
This is the relative location of your js library directory, normally this should be set to **js/** | This is the relative location of your js library directory, normally this should be set to **js/** | ||
Line 61: | Line 74: | ||
<tip c w> | <tip c w> | ||
- | ===== Optimization Settings ===== | + | ====== Optimization Settings |
These settings enable specific features that will help speed the page load. Note that some of the features require certain things on the server, so not all sites will be able to use all optimization features. | These settings enable specific features that will help speed the page load. Note that some of the features require certain things on the server, so not all sites will be able to use all optimization features. | ||
Line 67: | Line 80: | ||
<tip c n> | <tip c n> | ||
- | ==== Combine, Minify, and Compress CSS and JS ==== | + | ===== Combine, Minify, and Compress CSS and JS ===== |
This is the **main optimization** that will help greatly speed up overall page load times. It allows all CSS and JS to be combined so that it only loads a single " | This is the **main optimization** that will help greatly speed up overall page load times. It allows all CSS and JS to be combined so that it only loads a single " | ||
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: | ||
- | ==== Clear Combined CSS & JS ==== | + | 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 ===== | ||
This button will appear if the main combine setting is enabled. | This button will appear if the main combine setting is enabled. | ||
Use this button whenever you make any CSS or JS changes on your design. | Use this button whenever you make any CSS or JS changes on your design. | ||
- | ==== Also Combine CSS and JS libraries ==== | + | ===== Also Combine CSS and JS libraries |
Only shows if [[#Combine, Minify, and Compress CSS and JS]] is enabled. | Only shows if [[#Combine, Minify, and Compress CSS and JS]] 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. | ||
- | ==== Use Google Libraries API ==== | + | ===== 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 ===== | ||
**History of Setting: | **History of Setting: | ||
Line 115: | Line 135: | ||
[[http:// | [[http:// | ||
- | ==== Use {footer_html} to delay loading of certain javascript ==== | + | ===== Use {footer_html} to delay loading of certain javascript |
If this is enabled, JS will be loaded in **{footer_html}** rather than in **{head_html}**. | If this is enabled, JS will be loaded in **{footer_html}** rather than in **{head_html}**. | ||
Line 131: | Line 151: | ||
If none of the above works, your custom JS may simply not work when it is delayed, and it may rely on other built-in scripts that are delayed... | If none of the above works, your custom JS may simply not work when it is delayed, and it may rely on other built-in scripts that are delayed... | ||
- | ==== Use .htaccess for geo_templates/ | + | ===== Use .htaccess for geo_templates/ |
This **Requires Apache**, if you are using IIS or other server this will most likely not work for you. Turning this on will allow you to enable the optimizations that will automatically generate an .htaccess file inside your geo_templates/ | This **Requires Apache**, if you are using IIS or other server this will most likely not work for you. Turning this on will allow you to enable the optimizations that will automatically generate an .htaccess file inside your geo_templates/ | ||
- | ==== .htaccess - Stop Prying Eyes ==== | + | ===== .htaccess - Stop Prying Eyes ===== |
Available when [[#Use .htaccess for geo_templates/ | Available when [[#Use .htaccess for geo_templates/ | ||
Line 141: | Line 161: | ||
Turning this on will prevent anyone from looking at the directory index, meaning they will not be able to see what other files are inside of a specific folder. | Turning this on will prevent anyone from looking at the directory index, meaning they will not be able to see what other files are inside of a specific folder. | ||
- | ==== .htaccess - Compress Files ==== | + | ===== .htaccess - Compress Files ===== |
Available when [[#Use .htaccess for geo_templates/ | Available when [[#Use .htaccess for geo_templates/ | ||
Line 157: | Line 177: | ||
If you get 500 errors, or if images / CSS / JS seem to not load, you may need to turn on mod_filter. | If you get 500 errors, or if images / CSS / JS seem to not load, you may need to turn on mod_filter. | ||
- | ==== .htaccess - Cache Files Longer ==== | + | ===== .htaccess - Cache Files Longer |
Available when [[#Use .htaccess for geo_templates/ | Available when [[#Use .htaccess for geo_templates/ | ||
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 181: | Line 201: | ||
It will use that file to generate the combined & minified CSS or JS file. What that will do is generate the combined / minified CSS or JS, then it will write the file to the .min folder. | It will use that file to generate the combined & minified CSS or JS file. What that will do is generate the combined / minified CSS or JS, then it will write the file to the .min folder. | ||
- | ===== Advanced Settings ===== | + | ====== Advanced Settings |
This is the advanced settings section. | This is the advanced settings section. | ||
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> |