10.07.2015 Views

Tutorial section in PDF - Custom Training Courses - Coreservlets.com

Tutorial section in PDF - Custom Training Courses - Coreservlets.com

Tutorial section in PDF - Custom Training Courses - Coreservlets.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

© 2013 Marty Hall & Yaakov Chaik<strong>in</strong>Work<strong>in</strong>g with Images <strong>in</strong>UiB<strong>in</strong>der<strong>Custom</strong>ized Java EE Tra<strong>in</strong><strong>in</strong>g: http://courses.coreservlets.<strong>com</strong>/GWT, Java 7 and 8, JSF 2, PrimeFaces, HTML5, Servlets, JSP, Ajax, jQuery, Spr<strong>in</strong>g, Hibernate, REST, Hadoop, Android.Developed and taught by well-known author and developer. At public venues or onsite at your location.Problem• Large overhead– Web apps mostly use small images for icons– HTTP request for each image – most traffic is overhead• Useless if-modified-s<strong>in</strong>ce checks– Even cached image needs to be checked if updated• Browser typically gets a 304 “Not Modified”– Images rarely change, so this is a waste• Limited HTTP connections– HTTP 1.1 requires browser to use no more than 2connections per doma<strong>in</strong>/port– Large number of small images tie up the connections52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!