A TIP TO IMPROVE ACCESSIBILITY IN YOUR SINGLE PAGE APPLICATION

bugs_bunny

Derek Oware

Posted on October 2, 2020

A TIP TO IMPROVE ACCESSIBILITY IN YOUR SINGLE PAGE APPLICATION

Navigating in a multi-page application is done by refreshing the webpage. In this case, the screen-reader announces to the user when the page is done loading. However, In single-page applications, navigation is done via JavaScript which makes the screen-reader unaware of the navigation.

The solution is easy. When the navigation is done, just set the focus on the <h1></h1> element on the loaded page. The screen-reader will read the text content of the <h1></h1> element, hence making the user aware that the page has finished loading.

💖 💪 🙅 🚩
bugs_bunny
Derek Oware

Posted on October 2, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related