![]() |
Optimize your pages!
replace all " " (double spaces) with nothing and you will save yourself almost 25% in filesize.
I just did it on hundreds of files and each went from ~20kB to ~14kB. :thumbsup |
u mean replace " " two spaces, right?
|
Quote:
Replacing single spaces would fuck up your code majorly. |
i know for some reason java puts spaces in your pages, and he's correct they make pages a lot larger.
|
Quote:
|
Been doing this for years... since I parse templates with PHP I always use an str_replace on tabs before the echo :glugglug
|
Quote:
Just use UltraEdit if you're not a programmer and do a "quick" F&R across a folder. It may take a while, but both your bandwidth and your surfers will thank you for it. |
Quote:
Most intentation is done with spaces. They take up a lot of file size. Once you're done with your HTML and no longer need indentation for an easy read, just replace all the double spaces with nothing and voila... the code will still be functional, but harder to read. |
"looking out for you"
*snap* cheers EQ. :glugglug |
Quote:
Doing my job. Cheers nig :glugglug |
Quote:
|
:thumbsup
|
it works with tabs, too. :thumbsup
|
Quote:
I have the rewarding habit of using them whenever manually indenting :thumbsup Edit: Geez, I've been bumping cold threads lately - better speed up :glugglug |
bump
|
I'll try it with my PHP templates . Will see results...:thumbsup
|
itworkedgreatformedudethankyouverymuch
|
Quote:
youremorethanwelcomemynegrobrother |
Quote:
|
or use mod_gzip and save 80% bandwidth on html, and you dont need to turn your html code unreadable
|
:)
|
I never think on this, but is true :thumbsup
Anyway, another way for optimize the load of the pages is installing GZip mode into the server. The server will give you the HTML pages up to 5 or 6 times more faster than normal. |
If you use php use the ob_gzhandler and save a lot. Much better than editing your pages manually
|
Quote:
|
All times are GMT -7. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123