Closed (works as designed)
Project:
Zen
Version:
7.x-5.x-dev
Component:
CSS/SASS/HTML markup
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2012 at 00:19 UTC
Updated:
29 Jul 2013 at 14:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
maximpodorov commentedHere's the actual patch.
Comment #2
maximpodorov commentedComment #3
johnalbinIt's actually the best candidate for inline image. If you reference an image in a CSS file, the browser will ALWAYS download it, even if you don't actually use that selector on the given page. That means that it will do 2 HTTP requests (one for the CSS and one for the image). Making it inline means you only need 1 HTTP request since the image is embedded in the CSS.
If you don't think the progress bar will be needed on the front-end of your site (very possible), I'd suggest removing the ruleset from your theme.
Comment #4
maximpodorov commented> the browser will ALWAYS download it, even if you don't actually use that selector on the given page
Are you sure? My experience is if you set a separate background image for a:hover, there is a delay when hovering - the browser makes a new HTTP request.
Maybe mobile browsers behave different...
Comment #5
maximpodorov commentedJonn, thank you for fixing this. At last. :)