News for hackers. Stuff that matters.
Re:A Short Cautionary Tale About Refactoring by chris_engel on Sunday March 21, 2021 @05:09AM (#26529146)
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 :)

Re:A Short Cautionary Tale About Refactoring by ziga-miklic on Sunday March 21, 2021 @05:55AM (#26529317)
The 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.