News for hackers. Stuff that matters.
Re:We don't support Internet Explorer, and we're calling tha... by karlshea on Tuesday May 08, 2012 @07:28PM (#3946328)
All the code I've seen for content images involves some JavaScript stuff that uses the device pixel ratio as well.
Re:We don't support Internet Explorer, and we're calling tha... by WiseWeasel on Tuesday May 08, 2012 @07:52PM (#3946405)
The server should not have to decide which image to send, based on whatever it can gather of a combination of various factors, including device display resolution capability (double-density vs regular pixel mapping) and connection quality (wireless vs broadband) or whatever else comes into play. The server should be advertising the capability of high res images and the user agent should be requesting them if it wants.
Re:We don't support Internet Explorer, and we're calling tha... by karlshea on Wednesday May 09, 2012 @04:54PM (#3950432)
That's a great idea, but that's not currently how it works. All of the high-res website image stuff that I've seen all uses client-side JavaScript to fetch the 2x images.
Re:We don't support Internet Explorer, and we're calling tha... by WiseWeasel on Thursday May 10, 2012 @05:49AM (#3952603)
Yeah, that's just a broken way to go about it. We need to put pressure on browser maintainers to fix it. I feel dirty doing a hack like that.