4 comments

[ 4.7 ms ] story [ 16.0 ms ] thread
Web apps should send flat HTML to the client. Following that, they should send a small bit of javascript to respond to clicks with a "please wait a moment" and cache the clicks. After that, the application can be loaded and can take over all the clicking and keyboard events.

This would reduce startup latency tremendously.

Sadly, I stopped reading when they got to recommending eval as a method for running js received over xhr.
What's so bad about using eval in this context?
With XHR's same-domain policy, the JS had to come from you -- using eval introduces no exploits that weren't already present.