29. WHICH WAY?
Use script-based event handling by
❖
default
If the page is large and this method
❖
results in unresponsiveness try event
delegation
If all else fails go for inline event
❖
handling
54. WHICH WAY?
No clear winner
❖
DOM is good for more surgical
❖
manipulation
innerHTML is good for replacing large
❖
amounts of content or simple jobs
79. PROGRESSIVE
ENHANCEMENT
1. Start with a working plain HTML app
2. Test if necessary browser features are
there (XMLHttpRequest, canvas etc)
3. If present then apply extra JS powered
features to the UI