-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gdoc article Grapher embeds don't have SVG fallbacks #2354
Comments
For reference: The code that makes this work for WP baking is this one here: owid-grapher/baker/formatWordpressPost.tsx Lines 383 to 392 in b0e6424
And then there's also some code ensuring that we have a svg version for every variant that we embed, i.e. the concrete query params that are being used in an embed. |
When implementing this make sure to also check this for data pages and topic pages |
The issues #2992 is also related to this one and should probably fixed at the same time |
@ikesau why would we want to do this? It makes me less likely to use the interactive chart as a user if I have to click to load it, and subjectively I'd prefer to be able to interact with the chart ASAP. |
Now I see that some less powerful devices are probably not handling it well, fair enough. |
I noticed this today after browsing our site with NoScript enabled.
https://ourworldindata.org/population-projections
It's still working with our WordPress articles, so this is due to how our Chart component renders charts.
As part of this, we should also restore the "Tap to load" functionality on mobile where it only loads the SVG by default.
The text was updated successfully, but these errors were encountered: