Re:A tale of webpage speed, or throwing away React
by juicypt on Monday August 24, 2020 @08:34AM
(#24259987)
Actually webpack has the url-loader which allows embedding binary data as base64 data URLs in your CSS bundle.
If used judiciously it can even be a good thing too.
EDIT: I mentioned webpack since the thread is about react, but you can do the same thing manually by putting the base64-encoded data in a data URL on a CSS file.
EDIT: I mentioned webpack since the thread is about react, but you can do the same thing manually by putting the base64-encoded data in a data URL on a CSS file.