Can i use jQuery?

I am making a piece of jQuery code that will change attributes in hundreds of HTML elements.

Is it possible to fully use jQuery to perform such tasks?

Is there any chance jQuery code will leave my page inconsistent?

EG. Not quite fulfilling the task that I expect.

+7
source share
3 answers

In my opinion, I would trust jQuery even in mission-critical applications. This is pretty stable and has never failed me in mass web applications.

You need to be very careful when updating, as if you used third-party plug-ins, they can be unstable or fully compatible with the latest versions of jQuery.

+5
source

Yes, he will complete the full task. However, this can get a little slow as you talk about hundreds of elements. This can cause the browser to go into some kind of safe mode (saying that the user script is slow, etc.).

Therefore, you can check how far you can go with it or use a different approach. Maybe some waiting time when you do it piecemeal.

+3
source

He will probably complete this task and trust jQuery to a very high degree. As a result, performance is also related to browser speed and selector speed . Always check if you are using the correct selectors.

0
source

All Articles