Re:Css-only-chat: A truly monstrous async web chat using no ...
by zeroimpl on Tuesday May 07, 2019 @07:20PM
(#19854373)
It does seem odd that browsers don’t preload images for hover effects. I guess in practice most hover effects just use colors? Otherwise there’d be a noticeable lag the first time you hover or something.
[ Parent
| on HN ]
Re:Css-only-chat: A truly monstrous async web chat using no ...
by iMerNibor on Tuesday May 07, 2019 @07:42PM
(#19854518)
This is actually an issue, to work around this as a dev you would usually use sprite sheets (one single image file with multiple images in it)
Re:Css-only-chat: A truly monstrous async web chat using no ...
by hombre_fatal on Wednesday May 08, 2019 @08:48AM
(#19858307)
You can front load it with an <img> tag and various other ways. Look at how arbitrary asset loaders work for browser games.