| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| i love automation Join Date: Nov 2007 Location: xrvel.com
Posts: 1,620
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Jul 2008
Posts: 147
![]() | I'm working on a site that uses 2 main style sheets combined. With some pages are added a 3rd and 4th style sheet. My css is heavily commented and I need to keep it that way for a while. Saving bytes here and there with shorthand and compression doesn't affect efficiency all that much, but redundant http requests matter a lot. I'll give your script a try, thanks for posting! |
| |
| | THREAD STARTER #3 (permalink) | ||||
| i love automation Join Date: Nov 2007 Location: xrvel.com
Posts: 1,620
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thank you ![]() I hope this script can solve the redundant HTTP requests ![]() ????: NamePros.com http://www.namepros.com/showthread.php?t=497829
__________________ | ||||
| |
| | #5 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 problem I forsee with such a system is the lack of ability to cache the style sheets etc. If most of your visits are repeat visits then the chances are they have those files cached and providing they have not changed they will not be redownloaded. Another cheat that can speed up page loads is to have for example your site running off of domain.com but javascript and css or images running off of assets.domain.com. Browsers see domain.com and assets.domain.com as being different hosts. Browsers limit the amount of downloads for a specific host so doing this doubles the amount of http requests the browser will run at any 1 time on the site. Other good methods for speeding up websites is to have for example javascript at the end of the page instead of in the header. If using firefox a good extension that you can use to help find problems is yslow developed by Yahoo. This extension needs firebug to run but is handy. If interested in this type of thing a book that is fairly good (and writen by 1 of the people involved with yslow) is http://oreilly.com/catalog/9780596529307/
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft
Last edited by Peter; 08-25-2008 at 06:27 PM.
|
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |