3 replies [Last post]
fameadvance
fameadvance's picture
User offline. Last seen 1 year 40 weeks ago. Offline
newbie
Timezone: GMT+1
Joined: 2010-08-12
Posts: 1
Points: 2

I seem to have run into a problem with the way IE 8 renders a site whilst its loading.

IE appears to load the site first with positions incorrectly. Divs appear in the wrong place at first and then they readjusts.

It works fine in all other browsers. Any suggestions?

www.romafinance.co.uk

Debayan Gupta
Debayan Gupta's picture
User offline. Last seen 1 year 33 weeks ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2010-08-10
Posts: 45
Points: 51

Works fine..

It seems to be working just fine on IE8.

The visible readjustment is probably because of a delay in applying the CSS - that is, the HTML has been loaded, but the CSS has not yet been applied - so you get to see some stuff, and the thing gets corrected as soon as the CSS loads. This would only matter on a slow connection.

To speed up the CSS loading, you should :

1. Put it in a nearby directory (whatever dot co.uk/style.css), or even in another subdomain. Don't keep it in wp-content/whatever...

2. Use ONE css file. You're using FIVE css files and (I think) six or seven js files. Think of the overheads !

3. Gzip your js/css. You can do dis via your server config, or you can just use .htaccess (just google "htaccess gzip css"). If you want to, you can go all the way and disable etags + add cache-control + far future expires.

Hugo
Hugo's picture
User offline. Last seen 16 hours 48 min ago. Offline
rank Moderator
Moderator
Timezone: GMT+1
Joined: 2004-06-06
Posts: 15197
Points: 2300

Debayan this is a WP site and

Debayan this is a WP site and there are certain configuration defaults that have to be observed. Themes live in /wp-content/themes and associated style sheets in the theme folder, you can't simply move them where ever you fancy.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Debayan Gupta
Debayan Gupta's picture
User offline. Last seen 1 year 33 weeks ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2010-08-10
Posts: 45
Points: 51

Whoops... hehe

Forgot about that (though it _can_ be overridden).

So in that case - #2 and #3 apply - scrap #1.