Is jquery a slow browser?

I am using jQuery on my webpage. Will this make the web page load slowly?

Using jQuery is an advantage than JavaScript, or not why? ...

+4
source share
7 answers

Check your Firebug and YSlow page to see where the bottleneck is actually.

Generally speaking, JS makes your page slower. However, on modern machines and with modern Internet connection speeds, this delay is not even noticeable. However, excessive use of JS can slow down your page.

+11
source

Im using jquery on my webpage will cause the webpage to slowly load content.

It depends on the situation, but usually not. If you plan to use some JavaScript / JQuery to improve your interface, create a fade effect or two, get a drop-down list or some AJAX calls, don't worry too much. You will most likely be fine.

Only if you have HUGE web pages (tens of thousands of elements), you need to make several megabyte AJAX requests or have a fully managed JavaScript interface that works slowly, then it's time to look for optimizations.

Check out jQuery and SO performance questions for specific situations (lots of selectors, performance comparisons between $() and document.getElementById , etc.)

One thing to keep in mind is the JQuery plugins (and, of course, other Frameworks), which apply manipulation to the entire document when the page loads. A very good example is formatting source code here on SO. If you look closely, you will notice that when the page loads, there is a tiny part of the pause, where the source code is not formatted. Formatting is applied using JavaScript. If you use too many of these things, your page will probably render slowly on older machines.

In general, if you are not sure, always check your pages not only on many browsers, but also on older machines.

+4
source

I found that optimizing the jQuery JavaScript source using the Google Closure Compiler has a noticeable effect on both JavaScript loading time and overall response time. This is impressive.

+1
source

Use the Google Ajax libs hosted version and it will probably be cached by the time someone gets to your page.

+1
source

When the page loads, an additional resource is added, for example, a .js file. Small overhead.

For more information on a specific download, use Google’s Webmaster Tools to get recommendations.

jQuery itself can slow down the browser (not page load time) when used without warning or on very crowded pages, but I would not worry about that in most cases. The recent version of jquery 1.4 has further improved performance.

0
source

With 23KB reduced and gzipped, this will not have a noticeable difference in the loading speed of your pages (especially after caching it in your browser). It also does not lead to a noticeable difference in the interactivity of your page.

You will save a lot of time in order not to debug browser compatibility issues.

0
source

Yes jQuery or any other file uploaded to your page adds overhead.

For me, this is an overhead of β€œ0” based on jQuery efforts.

Try programming without jQuery to see my point.

jQuery has my vote for president!

0
source

Source: https://habr.com/ru/post/1300738/


All Articles