jQuery memory performance using addClass() vs css(). -


I have a grid layout of divs, that when the cursor runs on the div, this color changes I use jQuery So, I'm using the mouse center function. I can use

$ ('# id'). AddClass ('someClass'); or $ ('# someId'). CSS ('background', 'red');

I have received information about the performance of the speed between the two, but which method is better for any memory display, especially if you have more than 10,000 devices.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -