Will using jQuery slow down my site?

I plan to use jQuery on my new website.

I have some questions about jQuery:

  • If I use jQuery on my site, page loading will be slower than regular js.
  • Our project is a social network site. is jQuery suitable for it?

Please give me your suggestions.

+3
source share
6 answers

jQuery minified is around 19KB. If you link to Google-JS, you can be sure that users will not have to download JS from your site again and again if they are Google users (who is not?)

jQuery is suitable for any place where you need Javascript.

+5
source
  • js. .
  • .
+5
  • jQuery js . ~ 20K (gzipped), .

  • jQuery -.

: javascript, jQuery, , . jQuery IE, Firefox Safari. .

+4

, jQuery.

Google AJAX Libs CDN, , .

-, YSlow, .

+3

jquery/other script .

, , , jquery (gzip), .

, javascript, , : (

0

if you are not using jQuery, it is likely that you will probably write raw javascript support, which will be the same number of lines of code. In addition, you will be pulling your hair out, resolving all the cross-browser features that jQuery cares about you relatively transparently and painlessly.

Some candidate frameworks for your social networking platform, such as Drupal, for example, include jQuery in their main distribution ...

0
source

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


All Articles