liveBook · Manning

Cross-browser development concern

As explained in Secrets of the JavaScript Ninja, Second Edition

An issue that affects code across browsers, such as implementation bugs, regressions, interference, or absent features.

Reusable JavaScript faces five recurring concerns: browser bugs, browser bug fixes, external code, browser regressions, and missing browser features. Weigh the effort spent on each against its likely benefit for your audience and constraints. section 14.2

Keep compatibility work practical:

  • Prioritize popular browsers used by your intended audience. section 14.2
  • For less popular browsers, degrade gracefully; an unsupported API should not throw an exception that prevents the rest of the code from running. section 14.2

How Secrets of the JavaScript Ninja, Second Edition covers it

How deep it goes
Names five concerns and gives prioritization and graceful-degradation guidance, while deferring detailed treatment of each concern.
Examples
Contrasts popular and less popular browsers and warns that an unsupported API should not stop other code with an exception.
What you can do after
Evaluate compatibility work by weighing audience, development resources, and schedule, then prioritize likely-used browsers and graceful degradation.
How it connects
Connects browser bugs, browser bug fixes, external code, browser regressions, and missing browser features to reusable JavaScript development.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secrets of the JavaScript Ninja, Second Edition. The section links point to the parts of the book it draws on.