html - Usage of encoded images -
recently found out encoded images (base64 strings) , seems nice. have few questions it:
- should make of images encoded?
- if have photo encoded, have keep photo on website inside directory?
- how faster this? worth converting every image , use string?
- if have gallery, should use encoded images, or keep results in cases in hundreds of http requests?
thanks in advance!
should make of images encoded?
no, browsers have limit
from mozilla developer network:
although mozilla supports data uris of unlimited length, browsers not required support particular maximum length of data. example, opera 11 browser limits data uris around 65000 characters.
if have photo encoded, have keep photo on website inside directory?
no, won't need original image, if encode it, require encoded string only.
how faster this? worth converting every image , use string?
it save http requests, , shouldn't convert every image.
if have gallery, should use encoded images, or keep results in cases in hundreds of http requests?
no, shouldn't, take @ lazy loading instead.
Comments
Post a Comment