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/10/03 17:12] jonyo |
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 ====== |
- | <tip c w> | + | 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> | ||
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 93: | Line 108: | ||
We recommend to turn this on if you are already turning on the main combine setting, but the option is available if you have a reason to load libraries on their own (not combined). | We recommend to turn this on if you are already turning on the main combine setting, but the option is available if you have a reason to load libraries on their own (not combined). | ||
- | ==== Use {footer_html} to delay loading of certain javascript ==== | + | === Troubleshooting === |
+ | |||
+ | 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 ===== | ||
+ | |||
+ | **History of Setting: | ||
+ | |||
+ | This setting **only shows** if the setting [[#Also Combine CSS and JS libraries]] is **not** enabled. | ||
+ | |||
+ | Between this setting and [[#Also Combine CSS and JS libraries]], | ||
+ | |||
+ | If you are using a version **before 7.3.2**, make sure to **TURN THIS OFF** if you have enabled the setting to also combine libraries. | ||
+ | |||
+ | Using this feature allows certain JS libraries to be loaded from the Google Libraries API instead of loading them from your local site. This provides 2 main advantages: | ||
+ | * Google Libraries API uses compression by default, if the browser is capable of handling it, so that the file downloaded is much smaller than if no compression was used. This makes the page load that much faster. | ||
+ | * Since it loads off of a common location (from Google' | ||
+ | |||
+ | Note that this only uses Google Libraries API for the //client side// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ===== 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 109: | 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 119: | 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 135: | 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 143: | 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 159: | 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 165: | 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> | ||
Line 206: | Line 248: | ||
If this setting is turned on, you will have a lot more work on your hands for software updates. | If this setting is turned on, you will have a lot more work on your hands for software updates. | ||
- | ==== Use Google Libraries API ==== | + | ==== Use Google Libraries API (moved) |
- | This setting **Added in 6.0.0**, and moved to **Design > Settings**((previously the setting was found in **Design > Template Sets**)) in version **7.3.0**. | + | This setting |
- | Using this feature allows certain JS libraries to be loaded from the Google Libraries API instead of loading them from your local site. This provides 2 main advantages: | ||
- | * Google Libraries API uses compression by default, if the browser is capable of handling it, so that the file downloaded is much smaller than if no compression was used. This makes the page load that much faster. | ||
- | * Since it loads off of a common location (from Google' | ||
- | |||
- | Note that this only uses Google Libraries API for the //client side// | ||
- | |||
- | [[http:// | ||
==== CHMOD 777 Files ==== | ==== CHMOD 777 Files ==== | ||