How to load a script without blocking the whole page on Google Chrome?

Posted by Dyaz on Stack Overflow See other posts from Stack Overflow or by Dyaz
Published on 2011-11-25T01:34:27Z Indexed on 2011/11/25 1:51 UTC
Read the original article Hit count: 72

Filed under:
|
|
|
|

I'm developing a website that uses an Ajax plugin to like/dislike/comments an item. But when there are multiple items on the same page, the page takes too long to be displayed. On google chrome for instance, for 10 items you have to wait something like 10 seconds before you can see anything.

But in Firefox, and IE 8, the other elements of the page are displayed, and only the likes/dislikes take some time. But the advantage is that they are displayed as soon as they are loaded. So this is much better. So how come Google Chrome is less efficient than Firefox and IE? Is there a trick to display on Chrome the page like in Firefox? I have attached a Firebut image of the loading page. http://img59.imageshack.us/img59/9475/scriptj.png Thanks for your help.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript