Jquery-in-footer code optimization (theory)

I use various jquery plugins, including lazy-load, scrollTo, an image effect thing and various snippets from reading people’s posts on this site. Now all these effects work, starting with the footer, and there, as with the delay that occurs. The effects are similar, indecisive, or jumping, or nonsmooth.

I played using a document ready to load a window, and I have a snippet in the title to prevent FOUC, but I have a feeling like a queue problem or memory overload or something like that. (I like it when you try to use your laptop with too many running programs, and everything gets heavy and slow.)

Especially in Opera. For some reason, Opera cannot process my site.

It doesn't seem to me that several jquery effects should present such a problem. People play powerful video games, no problem, and yet the website with the FadeIn effect is suddenly too much for computers to handle? There must be something that I am doing wrong with my bottom code.

So, to my theory question -

As a standard practice, I need to start to make sure that all these jquery effects work more smoothly, gobble up less memory, don't conflict with each other or something else?

+5
source share
1 answer

, JavaScript/jQuery, - . , profile .

, . , jQuery.

:

  • , getElementById(), .
  • jQuery. , $('.class1 #id2 > child3') 10 . var $mytd

, . , :

  • , , ( , , ).
  • . , jQuery 50 .

, , , . , IE, , . JavaScript- .

+5

All Articles