GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Optimize your pages! (https://gfy.com/showthread.php?t=331819)

X37375787 07-26-2004 09:05 PM

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

riosluts 07-26-2004 09:06 PM

u mean replace " " two spaces, right?

X37375787 07-26-2004 09:07 PM

Quote:

Originally posted by riosluts
u mean replace " " two spaces, right?
_ _ double spaces, duh. Can't really show it well, can I?

Replacing single spaces would fuck up your code majorly.

jimmyf 07-26-2004 09:08 PM

i know for some reason java puts spaces in your pages, and he's correct they make pages a lot larger.

NoCarrier 07-26-2004 09:08 PM

Quote:

Originally posted by Equinox
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

Something I have to do. I've always used "

JSA Matt 07-26-2004 09:09 PM

Been doing this for years... since I parse templates with PHP I always use an str_replace on tabs before the echo :glugglug

X37375787 07-26-2004 09:12 PM

Quote:

Originally posted by JSA Matt
Been doing this for years... since I parse templates with PHP I always use an str_replace on tabs before the echo :glugglug

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.

X37375787 07-26-2004 09:14 PM

Quote:

Originally posted by jimmyf
i know for some reason java puts spaces in your pages, and he's correct they make pages a lot larger.

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.

Fletch XXX 07-26-2004 09:15 PM

"looking out for you"

*snap*

cheers EQ.

:glugglug

X37375787 07-26-2004 09:19 PM

Quote:

Originally posted by Fletch XXX
"looking out for you"

*snap*

cheers EQ.

:glugglug


Doing my job.

Cheers nig :glugglug

JSA Matt 07-26-2004 09:34 PM

Quote:

Originally posted by Equinox
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.
Well I have a problem with messy code. I can't stand it. So all my code will be perfect for me, but minimal for the surfer :)

The Bootyologist 07-26-2004 09:35 PM

:thumbsup

X37375787 07-26-2004 10:03 PM

it works with tabs, too. :thumbsup

Diligent 07-27-2004 01:32 AM

Quote:

Originally posted by Equinox
it works with tabs, too. :thumbsup
What he said.

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

X37375787 07-27-2004 08:37 AM

bump

arachnO 07-27-2004 08:54 AM

I'll try it with my PHP templates . Will see results...:thumbsup

Theo 07-27-2004 08:55 AM

itworkedgreatformedudethankyouverymuch

X37375787 07-27-2004 09:01 AM

Quote:

Originally posted by Soul_Rebel
itworkedgreatformedudethankyouverymuch

youremorethanwelcomemynegrobrother

arachnO 07-27-2004 09:11 AM

Quote:

Originally posted by Soul_Rebel
itworkedgreatformedudethankyouverymuch
hehehehehe :thumbsup

Lane 07-27-2004 09:16 AM

or use mod_gzip and save 80% bandwidth on html, and you dont need to turn your html code unreadable

The Bootyologist 07-27-2004 09:19 AM

:)

pelcito 07-27-2004 09:28 AM

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.

Calvinguy 07-27-2004 09:33 AM

If you use php use the ob_gzhandler and save a lot. Much better than editing your pages manually

Broda 07-27-2004 09:42 AM

Quote:

Originally posted by Lane
or use mod_gzip and save 80% bandwidth on html, and you dont need to turn your html code unreadable
I was just about to post that exact same answer :thumbsup


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