I’ve added a Dyslexia accessibility feature to my website which loads a Dyslexia-friendly font, woo!
This involved creating a small toggle function to turn the feature on and off, but when I reload the page it’s gone, so I had it bake a cookie so the function could trigger automatically on-reload. This still wasn’t enough I didn’t want every visitor to load the font, only users who click the toggle button, so I added a section to dynamically load the font.
Read more →