Jump to content

Archived

This topic is now archived and is closed to further replies.

runnerjp

compress website ???

Recommended Posts

hey ok all iv done to my website is add a layout i created with photoshop and its realllyyy sloww loading ... [url=http://www.runnerselite.com]www.runnerselite.com[/url] is their any way to compress my website or something so it loads faster :(

Share this post


Link to post
Share on other sites
Add this to the top of your page:
[code]ob_start("ob_gzhandler");[/code] and this on the bottom: [code]ob_end_flush();[/code]

Share this post


Link to post
Share on other sites
Do you still have the code there? Because it shows up fine for me.

And what it does is that it checks what type of encoding the browser accepts ("gzip", "deflate" or none at all) and then returns the output accordingly. That means if the user's browser supports it, it will compress the content.

Try only using [code]ob_start("ob_gzhandler");[/code]

Share this post


Link to post
Share on other sites
I don't think that's a good idea.  There are other ways to optomize a website.  And if you've done things like minimizing graphics, optomizing graphics, and using CSS layouts to minimize layout coding, then I'd look at your host to see if they have a slow connection.

Share this post


Link to post
Share on other sites
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/runnerse/public_html/maq.php on line 16

Did you remove something?

Share this post


Link to post
Share on other sites
ow yer sweet thanks....im tryin to get a php script workin but i aint havein much look in this forum lol

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.