No image strip file and no single request with gwts ClientBundle ImageResource -
the purpose of gwts clientbundle + imageresource reduce number of http request 1 , minimize amount of transfered bytes while clientbundle creates single jpg strip file contains jpg-pics. example have ten pics, clientbundle put these ten pics single jpg-strip-file , if app call these images there 1 http request single-jpg-strip file. thats understand. thing clientbundle not creating single strip file. creates ten cacheable files when enabling caching still not create single stripfile. iam understanding wrong purpose of clientbundle is?
there 2 small misunderstandings in question:
clientbundle generate sprited image ie6/7; other browsers it'll use
data:
urls (at least that's default configuration) until threshold on size of image , directly reference image external 1 (not sprited).clientbundle won't generate sprited images (for ie6/7) images lossy compression (such jpegs), lossless 1 (such png or gif), , if they're not animated, , if they're not big (threshold controlled
gwt.imageresource.maxbundlesize
system property , defaults 256 pixels)
in case, i'd jpeg images cross threshold they're not inlined data:
urls, , because jpeg (i.e. lossy compression) don't see sprited image generated either.
note: there several threshold data:
url:
- one on size of file: https://gwt.googlesource.com/gwt/+/2.5.1/user/src/com/google/gwt/resources/rebind/context/abstractresourcecontext.java
- one on size of
data:
url (after base64-encoding): https://gwt.googlesource.com/gwt/+/2.5.1/user/src/com/google/gwt/resources/rebind/context/inlineresourcecontext.java
Comments
Post a Comment