2 ms·
I'm still not sure about the inlining tough. The module of the error component could request the image before the error gets rendered so the image lands in brow
by chris_engel 6y ago
I'm still not sure about the inlining tough. The module of the error component could request the image before the error gets rendered so the image lands in browser cache and can be displayed when no network is available.
But its also possible the app doesnt use bundling and the error module is cached in isolation. The inlining would be fine then :)
- ziga-miklic 6y agoThe author here: Thank you for reading my post. I think it is a valid use case as this is a React application and the inlined image is inside JSX. It is also a part of the main app file. So when the user goes offline, the function with the inlined image is run and the image is rendered. As the image source is inlined, the browser does not need to make a request for the image.