skip to Main Content

Will Javascript has time constraints on execution time in browsers, when I add <script> tag in my webpage ?
Will browsers forcefully stop Javascript if it takes more time ?

Will all browsers have same maximum run time ?

2

Answers


  1. There’s no specification/standard for that, could vary from a browser to a browser, a version to a version

    Login or Signup to reply.
  2. There isn’t a definitive "maximum time" a JavaScript file can take to execute in a browser, as this largely depends on the performance of the browser, the complexity of the JavaScript code, and the capabilities of the user’s device.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search