Before using a JavaScript-powered solution, the product team should ask themselves:
- What are the benefits for the project and user of using a JavaScript solution?
- Examples: Improved interactivity and state management or specific features.
- What are the downsides?
- Examples: Increased page size, computer requirements, technical complexity, SEO complexity.
- What recourse do users have when JavaScript fails, is disabled or an older browser is used?
- See also: Browser support guidance
- The VF supports browsers released within the last five years and have JavaScript enabled.
- Pre-rendering your JavaScript application may have many benefits.
You should only use JavaScript frameworks when a high level of interactivity is needed and provide robust text or fallback functionality and make use of the JavaScript error template.
Further reading: Gov.uk provides additional reasoning on why you should not assume your JavaScript application works for all users.