html - Usage of encoded images -


recently found out encoded images (base64 strings) , seems nice. have few questions it:

  1. should make of images encoded?
  2. if have photo encoded, have keep photo on website inside directory?
  3. how faster this? worth converting every image , use string?
  4. 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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -