3 ms·
> In the context of javascript, "unobtrusive" means it is designed to degrade peacefully Nitpicking here, but that is actually graceful degradation/progressive
by DavidMcLaughlin 15y ago
> In the context of javascript, "unobtrusive" means it is designed to degrade peacefully
Nitpicking here, but that is actually graceful degradation/progressive enhancement.
Unobtrusive JavaScript is about writing JavaScript code that plays well with others. The example you gave of not having inline JavaScript in your presentation layer (HTML) is one example. Not writing JS code in the global namespace and avoiding monkey-patching built-in objects are other examples.