nestauk / beis-indicators

BEIS and Nesta have co-developed a spatial data tool to access, visualise and compare indicators that show the scale of R&D systems at a subregional level.
https://access-research-development-spatial-data.beis.gov.uk/
MIT License
7 stars 1 forks source link

Support disabled javascript #498

Closed mindrones closed 3 years ago

mindrones commented 3 years ago

via <noscript>.

Note that: 1) before hydration takes place, the banner is already visible and it takes a lot of room so it would seem that the only option would be to add <noscript> to the banner itself, which is not ideal. 2) when we land the banner has a different appearance than its form after hydration, which is also not ideal.

We could set display: none; to the banner using a class in static/global.css to then remove that class when the banner has been hydrated, so that we wouldn't see the banner before hydration, having an opportunity to show <noscript> content without the banner.