Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In IE Javascript execution speed is slower than Firefox, Safari and Chrome

In IE Java-script load slower than Firefox, Safari and Chrome?

Is there a way to load JavaScript quickly in IE also?

General best practice is to keep JavaScript at bottom of the page, does it make Js rendering more slow in IE?

Edit:

When we apply any jquery plugin to website to make any usable or interactivity then in IE effect shows slower than Other browsers.

We can easily identify the effect of condition on the page, before and after loading JS, which looks odd.

like image 628
Jitendra Vyas Avatar asked Dec 17 '22 23:12

Jitendra Vyas


2 Answers

The IE8 or below JavaScript engine sucks, it's better in IE8, but comparatively, it's still way behind...there's not a ton you can do about this if you're doing any heavy operations.

JavaScript is loaded and parsed each page, so the slower the engine, the slower the load...and that's the case with IE. Keeping JavaScript at the bottom of the <body> is one option, to prevent blocking, but likely your issue is not the loading (as this would be from cache, if your headers are set correctly), but the execution.

If it's any consolation, it seems IE9 is a major step forward, over IE8 at least.

It's a bit more general, but if you're looking to speed up your pages there are a few things to consider, Google has a good list for this and Yahoo does too.

like image 115
Nick Craver Avatar answered Apr 20 '23 00:04

Nick Craver


Not IE specific, but BetterExplained has some good points on how to increase load times or in some cases, Web page response times.

like image 37
Gert Grenander Avatar answered Apr 20 '23 00:04

Gert Grenander