Terulia Testing
FFO Classic |
Welcome Guest ( Login | Register ) | Browse | Search | Files | Chat |
Forum Home > Terulia Forum Service: Main > Forum Developments > simplified external CSS batching |
simplified external CSS batching | |||
Grameramera | 6:21 PM on January 07, 2011 [ edited by Grameramera at 6:28 PM on 01-07-2011 ] | (+0/-0) | |
Group: Best Pony Posts: 893 Total: 1255 |
Previously, the forum's CSS was generated on the fly and varied depending on which part of the forum you were viewing.
I've now separated the CSS into separate files which are hosted at http://www.terulia.com/css/ In getting these files ready, I simplified the CSS, and each page is now built from entirely modular page elements. (so instead of having class="options_header_u1r", it's now class="h_40p jc f_s bg_br_d") You can see the individual elements at http://www.terulia.com/css/stylesheet.css Anyway... Now I don't have to make a new CSS entry every time I want to change some little thing; plus the amount of data sent in a previously cached page request has been cut by almost 25%. Color scheme information has been saved into separate external stylesheets. (see the link) Since these are now static files, they can be cached, further reducing network strain. Finally, since a major choke-point for websites is the amount of time needed to download resources, I've incorporated a system for compiling any requested stylesheets into cacheable mega-stylesheets. Thus instead of requesting 2 stylesheets (main + color scheme at present) per page view, you receive a single file with all of the compiled data. The end result of all of this: A typical page view took ~800ms to load previously. This included the time in which your request traveled to the server, the time the server spent processing the request (page generation time), and the time needed to receive the results. In my testing, this same round trip now typically takes place in ~600ms. Also if you want to try creating a new color scheme using the existing ones as models, feel free to give it a shot. _________________________________________ ScouSin: Damn you Gaku! Damn you and your; "Be patient, and if you don't want to, tough, because I'm going to be all mystical about it!"
KingBlax: It's telling you to go outside, with no flash-light in the woods, and find a dead body, you eat dinner if you find 1. You die in the wilderness if you don't find 1 or at least bring something interesting back. ./personal_problem.sh -q > /dev/null 2>&1 & |
||
Shane | 6:36 AM on January 10, 2011 | (+0/-0) | |
Group: King of the Bidoofs Posts: 1146 Total: 1856 |
With this and a few other of your modifications, I load forum pages hella fast.
So fast, I'm probably pinging the ad servers like upwards to 15 times a minute. (Since, y'know, I'm not a douche and disabled ad blocking for terulia.com). So yeah. Hope you're making a killer off of the easier load times. _________________________________________ SMUG.MOMENTAI
|
Forum Home > Terulia Forum Service: Main > Forum Developments > simplified external CSS batching |
1 forum user ( 0 registered, 1 guest, 0 bots ) currently viewing this topic. |
This page was generated in 0.3 seconds.
Terulia forums are hosted for free at www.terulia.com [ Terms of Service: Updated 4/28/2011 ]. |