View Full Version : Links Don't Work on Compressed Web Page
theapprentice
21-02-2008, 04:50/04:50AM
Hi,
When I compress my published web site, the links on the home page do not work and I can't get past this page. Has anyone encountered this?
Thanks.
ihelpyou
21-02-2008, 08:20/08:20AM
Welcome! :hi:
Compress? What do you mean and why are you compressing a current website? I'm not getting it.
Connie
21-02-2008, 08:32/08:32AM
Welcome! :hi: Sorry I don't know any thing about how site compression works. What little I think I understand from what I've read it supposedly compresses the code to make a page load quicker. Is that what your talking about?
Blue
21-02-2008, 09:26/09:26AM
You did backup your files before compressing them, right?
From my understanding, most HTML compression tools work by converting HTML code into JavaScript.
Search engines will definately NOT like your newly compressed JavaScript website. They will no longer have any text to read. Therefore, you will never rank anywhere within any search engine and no human will ever be able to find your website via a search engine (and there are very few other ways people DO find websites).
So, while HTML compression might have seemed like a good idea, in reality you just put yorself out of business.
My advice?
Learn HTML. Learn how to reduce the size of your HTML code without the use of compression.
WebSavvy
21-02-2008, 09:40/09:40AM
Are they PHP files and did you compress those by adding ob_gzhandler?
If so, the top of the file should look like this:
ob_start();
ob_start('ob_gzhandler');
And the bottom of the file should look like this:
ob_end_flush();
header('Content-Length: '.ob_get_length());
ob_end_flush();
Inside your CSS file try adding
position:relative;
to all anchor CSS classes -- and see if that helps.
IE has this weird thing about "layout must be given" when you're using zlib compression.
Let me know if this helped.
theapprentice
21-02-2008, 17:31/05:31PM
Thank you all for your comments. When I first published my website, I noticed that the photos, mostly in the header, were slow to load. I then found out about HTML compression software. I compressed my Index.html at the software's normal compression setting and then uploaded it to my site. Initially, it worked fine, time after time. Now it doesn't.
Yes, I have the fiiles backed up.
I did not know that most compression tools convert HTML code into Javascript. I certainly do not want to jeopardize my ability for anyone to find my site, including search engines.
I've since discovered that I can compress photos and graphics with Microsoft Publisher. It doesn't have any other compression features.
Incidentally, the files are not PHP and I did not compress them by adding
ob_gzhandler.
bbcdb
21-02-2008, 18:06/06:06PM
HTML compression and image compression are two completely seperate things.
If your images are slow to load on your web page you should be compressing your images into JPEG or PNG formats with compression settings that provide the most appropriate screen quality for a reasonable file size.
Alternatively, you can think about using images that are smaller in size or less 'busy' in appearance.
Frankly there's much better software out there than MS Publisher for doing image compression.
Blue
21-02-2008, 19:45/07:45PM
Yes.
Ideally you want all the elements that make up any given page (HTML code, images, etc.) to be very small in total filesize in order to make your pages load as fast as possible. Shooting for a total filesize for a single page of around between 10kb (ideal) to 40kb or so would be best.
And do compress those graphics. You want to shoot for a graphic image filesize that is very small but doesn't lose clarity. Sometimes "slicing" graphics up can help.
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.