ACM Editorial · 2026-11-28 · 1 min read
Use JavaScript to enhance a website without sacrificing usability or search visibility.
Start with semantic HTML
Use links for navigation, buttons for actions and associated labels for form fields. Essential content should be delivered in HTML where possible. JavaScript can enhance search filters, galleries and enquiry dialogs without turning every page into an empty shell.
Handle events and requests
Prevent duplicate form submission while a request is pending. Check HTTP status and show meaningful errors instead of assuming a fetch call always succeeds. Keep keyboard focus visible, and return focus to the control that opened a dialog.
Test responsive behaviour
Test narrow phones, desktop screens and zoomed text. Avoid relying on hover for actions that must also work by touch. Load heavy media only when needed, and measure the cost of third-party scripts rather than adding them by default.
Discuss your project
Use the checklist above to scope the work, identify dependencies and agree on the testing and delivery requirements before requesting a quotation from ACM.

