iOS Safari’s Pecularities

I’m reading through Apple’s Safari Web Content Guide. It contains some interesting information on how iOS’s Safari (and I presume all applications that use WebViews). For example:

JavaScript execution time is limited to 10 seconds for each top-level entry point.

If your script executes for more than 10 seconds, Safari on iOS stops executing the script at a random place in your code, so unintended consequences may result.

This limit is imposed because JavaScript execution may cause the main thread to block, so when scripts are running, the user is not able to interact with the webpage.

Good to know.