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 ?
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
There’s no specification/standard for that, could vary from a browser to a browser, a version to a version
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.