4 ms·
What about a revised proposal: No line of JavaScript may execute more than 200 milliseconds after the last user touch/tap. That would still let video sites pl
by londons_explore 7y ago
What about a revised proposal:
No line of JavaScript may execute more than 200 milliseconds after the last user touch/tap.
That would still let video sites play videos, but everything else would have to be 'ready to view' within 200ms. Let the developer decide if they want to achieve that by making resources smaller, having fewer resources, getting rid of js frameworks, etc.
Sites which need more time could demand the user hold a finger on the screen while they load up their heavy frameworks, but that would be a clear "we are slow" indicator the site would want to avoid.
- gioele 7y ago> No line of JavaScript may execute more than 200 milliseconds after the last user touch/tap. This is how Opera Mini "implements" JavaScript. The Opera Mini server will run whatever JavaScript code there is in the page for ~2 seconds. Whatever can be seen on the screen at that point is sent to the Opera Mini client. It works good enough for things like SPAs and "click here to show more".