3 ms·
I have tried various solutions, but nothing that works better than what's there now. I only force the height for the logos, not the width, so wrapping doesn't
by Fileformat 6y ago
I have tried various solutions, but nothing that works better than what's there now.
I only force the height for the logos, not the width, so wrapping doesn't really improve things.
Waiting to display until they are all loaded kills the "instant" tagline. I'm hotlinking the images, so some images can take awhile.
- whoisjuan 6y agoIn theory you should be able to get the natural height and width of the image before loading it. Not exactly sure if it works with SVGs but it does work with PNGs
- EmilStenstrom 6y agoYeah, you could get the size of the images at indexing time, and return that in the search result.
- Fileformat 6y agoYou are assuming that I actually load the image at index time: I'm really only indexing the file name. And getting the width/height of a minimized SVG requires rendering it (or at least more SVG mojo than I possess).
- setr 6y agoHe's suggesting your index store the filename, height & width, and retrieve all 3 on search
- AHASIC 6y agoIt's a non-issue, don't sweat it.
- Ayesh 6y agoYou can use preconneft tags to make the browser preconneft to the likely source of the images. This usually gives a pretty big boost in speed because browsers will have already connected (DNS + TLS handshake) to the icon source's CDN.