Quick n Dirty Fix for IE6 Slow Loading


Author Message
GSP

Posted: 5/11/2009
Quote message 

Artisteer templates are slow to load in Internet Explorer 6, this is a known issue.

It appears to be something in the Javascript which is causing this slowdown.

For a quick and dirty fix, in page*.tpl.php, find the line which says

<?php echo $scripts ?>


and change it to:

<!--[if !(IE 6)]>

<?php echo $scripts ?>
<![endif]-->


This disables all Javascript on IE6 sites, and the site loads fine.

However, it breaks rounded corners quite badly so you'll need to add CSS to disable rounded corners on IE6:


.Sheet-tl,
.Sheet-tr,
.Sheet-bl,
.Sheet-br,
.Sheet-tc,
.Sheet-bc,
.Sheet-cl,
.Sheet-cr,
.Sheet-cc,
.Block-tl,
.Block-tr,
.Block-bl,
.Block-br,
.Block-tc,
.Block-bc,
.Block-cl,
.Block-cr,
.Block-cc {
display: none;
}


Any modules which load Javascript in the header (thickbox, admin_menu, etc) will break.

The site also looks ugly as sin, but I doubt many people who're still using that abortion of a web browser really care about aesthetics all that much.
 
GSP

Posted: 5/11/2009
Quote message 

Follow-up: This fix DOES NOT work after all. It breaks Javascript in other browsers too.

Spent another few hours diving into it and the culprit is the huge number of "behavior: expression(...)" CSS attributes in style.ie6.css. These calls are VERY slow.

In the end I just removed all the "behavior" attributes from the file and then patched up the CSS so it (sort of) loads properly. No rounded corners, no PNG transparency, but at least the site loads in under 30 seconds.

Artisteer IE6 support is currently BROKEN.
 
Serge

Posted: 5/20/2009
Quote message 

i suggest that artisteer use gif instead of png ... one reason being that png files seem quite big compared to gif ones ... looking at the post above, it would also solve the needed javascript code to make png transparent in msie

serge
 
GaliWebLer

Posted: 6/21/2009
Quote message 

their css coding is poor!
 
nilanko

Posted: 1/17/2010
Quote message 

does gif support transparency? :-X
 
Enrique

Posted: 3/3/2010
Quote message 

Yes, GIF was the original web graphic format (and still is the most used) way to use graphics with transparency. But either you have total transparency or no at all.