I’m using the jQuery document ready method – $(function()
If the page takes too long to render (say 2mins+), will this be the reason for the page throwing a javascript taking too long to execute error/warning?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
$(function(){})will get called once the DOM is loaded – i.e. it doesn’t keep running throughout the load process. Unless you are trying to do a long running synchronous task or stuck in a long loop, you shouldn’t get that error.Have a look at the CPU utilization. If it’s high for the browser, it’s a tell tale sign that there is an infinite loop somewhere.