Does it affect performance to use two or more $(document).ready.. ?
javascript, jquery
Solution
It is an extra function call, so of course it affects performance.
It won't affect it in any significant way. It probably won't even affect it in any measurable way (given all the other variables on the typical computer that impact JS performance in a browser).
Problem
I am working on a website project. The person in charge of the project tells me that it's not right to keep two or more `$(document).ready` .Does it affect performance? I prefer to keep multiple `$(document).ready` because I have lots jquery code, and it's a good way to divide blocks of code.