News for hackers. Stuff that matters.
Re:Using SVG as image placeholders by limeblack on Tuesday November 14, 2017 @05:12PM (#15699685)
I'm on mobile right now and therefore it is difficult to look at source but wouldn't the JavaScript be cached in most scenarios while the images would be unique per page? On a side note I have no JavaScripts on my own blogs.
Re:Using SVG as image placeholders by lllr_finger on Tuesday November 14, 2017 @05:31PM (#15699818)
Besides uncached views (I'm guessing a decent amount of the traffic from HN for this submission would be) you also have to consider parse/eval time. Look at the flame charts in Chrome Dev tools for some of your favorite sites and probably see a few that take almost a second to parse/eval cached JavaScript. It will be even slower for mobile users.

Just because it can be cached doesn't mean it's free or even necessary.

Re:Using SVG as image placeholders by andreareina on Tuesday November 14, 2017 @05:56PM (#15700035)
I wouldn't count on anything being in the cache, especially on mobile. Even on desktop, I've just checked my cache and any Medium resource shows exactly 1 hit. With ~350 MB in my cache (default value), it's not going to stay long before being evicted.