Slashdot Mirror


New HTML Picture Element To Make Future Web Faster

nerdyalien writes: At some point, haven't all web developers spent an unjustifiable number of hours trying to optimize a desktop site for mobile devices? Responsive web design provides a solution: "develop once, works in every device." However, still it downloads multi-MB images and re-sizes them based on device screen resolution. Retrieving optimized images from the server, based on device (desktop, tablet, phone) and the device's internet connection (fiber, broadband, mobile), has always been an open problem. Recently, a number of freelance developers are tackling this with a new HTML element, <picture>, which informs the web browser to download optimized images from the server. The tag will be featured in Chrome and Firefox later this year. Will this finally deliver us faster web browsing on mobile devices and an easier web development experience?

161 comments

  1. Ummm. by Anonymous Coward · · Score: 0

    Nah.

  2. does this mean.... by Anonymous Coward · · Score: 1

    does this mean that resizing the browser window will cause it to re-download images? because that sounds annoying.

    1. Re:does this mean.... by i+kan+reed · · Score: 1

      Presumably, they'll scale the one they have and replace it when the new one is available.

      Like mipmaps in games.

    2. Re:does this mean.... by NotInHere · · Score: 1

      You should design an image format in which larger versions can use data from smaller ones. So when you browse the site with a small window, the small version gets downloaded, and when you resize, the larger version gets downloaded, and when you visit with a large browser, both versions get downloaded.

    3. Re:does this mean.... by tepples · · Score: 1

      does this mean that resizing the browser window will cause it to re-download images?

      That depends on how often you resize the browser window. Smartphone and tablet operating systems typically implement a window management policy of all maximized all the time, which means the viewport size won't change unless the user is rotating the screen. How often do most desktop and laptop PC users resize a browser window?

    4. Re:does this mean.... by wisnoskij · · Score: 1

      Once is more than enough to be annoying.

      --
      Troll is not a replacement for I disagree.
    5. Re:does this mean.... by Anonymous Coward · · Score: 0

      I can't speak for everyone, but I do it all the time. Plus I have dozen tabs open at a time. I hope the browsers will be smart enough to not load images for background tabs.

    6. Re:does this mean.... by Falos · · Score: 1

      TFA goes into more detail (hell, history) and it's code that decides what to download in advance, affects the pre-load phase AFAIK, not live. Though a derp webmaster might still try that.

      Images are normally loaded even before the HTML, so it was hard to preempt. Had to work low-level code, petition the standards people, or whatever.

    7. Re:does this mean.... by Anonymous Coward · · Score: 0

      viewport size won't change unless the user is rotating the screen

      You forget zooming. I zoom in and out all the time on mobile devices, especially on sites that aren't made for mobile such as Slashdot. Sometimes I have to zoom so I can scroll.

    8. Re:does this mean.... by n1ywb · · Score: 2

      Images are normally loaded even before the HTML

      I think I may have misunderstood but how the hell does a browser load images before loading the html that tells it what images to load?

      --
      -73, de n1ywb
      www.n1ywb.com
    9. Re:does this mean.... by SuricouRaven · · Score: 2

      HTML isn't just one file any more. It's often supplimented by CSS, rewritten on the fly by javascript that pulls additional content from new URLs, and quite dynamic in general. It's quite possible for a browser to start downloading images before it has the HTML fully rendered.

    10. Re: does this mean.... by Anonymous Coward · · Score: 0

      I resize my browser all the time. I am a web developer.

    11. Re:does this mean.... by Anonymous Coward · · Score: 1

      I can't speak for everyone, but I do it all the time. Plus I have dozen tabs open at a time. I hope the browsers will be smart enough to not load images for background tabs.

      I hope the browsers do load images for background tabs. That's why I open pages in background tabs — to give them time to all load in the background while I am clicking from the main page.

    12. Re:does this mean.... by Anonymous Coward · · Score: 0

      I was under the impression that it also saves bandwidth, not wastes it. But I could be wrong.

    13. Re:does this mean.... by Applehu+Akbar · · Score: 2

      If only browsers were smart enough not to play audio in background tabs.

    14. Re:does this mean.... by AvitarX · · Score: 1

      I think that it means my desktop quality screen (1080p) on my broadband quality connection (I get over 20mbps in my home area) on my unlimited plan will get inferior images now.

      --
      Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
    15. Re:does this mean.... by i+kan+reed · · Score: 1

      How often do you resize your browser?

  3. Dupe by Hsien-Ko · · Score: 4, Interesting
    1. Re:Dupe by Anonymous Coward · · Score: 0

      Considering it's new links to new stories on the same subject, no.
      A corollary to the HTML 5.1 story, perhaps, but not a dupe.

    2. Re:Dupe by wisnoskij · · Score: 1

      Um, so as long as you pick new news sources to summarise, it is not a dupe?

      --
      Troll is not a replacement for I disagree.
    3. Re:Dupe by tepples · · Score: 1

      That's correct, so long as each news source reports a separate aspect of the story: support reaching Chrome Dev, support reaching Firefox Aurora, support reaching a browser's release channel, etc.

    4. Re:Dupe by Anonymous Coward · · Score: 0

      As long as I don't get dinged for posting a dupe... SWEET!

      New HTML5.1 code:
      nerdyalien from Slashdot reported that there is a new <picture> tag in the new HTML 5.1 schema in response to the responsive web design:
      http://tech.slashdot.org/story/14/09/02/1748237/new-html-picture-element-to-make-future-web-faster

  4. Won't help by Anonymous Coward · · Score: 0

    Most big, professional websites already look fine. They're responsible, and update, and everything.
    But there are a lot of crappy sites I'd still like to able to visit. They won't be using the new tag.

    1. Re:Won't help by Pieroxy · · Score: 1

      Most big, professional websites already look fine. They're responsible, and update, and everything.
      But there are a lot of crappy sites I'd still like to able to visit. They won't be using the new tag.

      So? Do you really think they'll drop the IMG tag in our lifetime?

  5. Not seeing the big deal here... by Anonymous Coward · · Score: 1

    This really isn't anything special if you think about it for a second. It's just a lazy way of creating a request handler with a limited scope.

    Keep in mind that an <img src="filename"> doesn't require the filename to end in .jpg, .gif, or any other particular format-associated extension. Hell, it doesn't even require a particular MIME type (or one of a group of valid ones) when it gets a response from that source URL as long as the client is happy with it.

    Over in ASP.Net land, we've been using src="/imageHandler.axd?name=blah&w=foo&h=bar" in img tags for years. You could certainly do the same thing from any server-side language. All you have to do is have the client substitute its window x and y size values into that request. The server can either serve up the closest appropriate size, or dynamically generate and cache one of the correct size on the fly.

    All this new tag is going to do is allow those without the ability to write such a server-side script (read: crayon jockeys) to set up a list of pre-baked images for a set of screen size ranges. It will add to page text bloat and provide little actual utility, since they'll only test on Macs and iPhones anyway. This will reduce this entire feature to nothing more than a waste of time.

  6. GUI technology has regressed since the 90s by thebeastofbaystreet · · Score: 4, Insightful

    Think about just how much work is now needed to display a simple GUI on a number of different devices. Something that a single developer could once have cooked up themselves now takes teams of designers, UX people, UI coders, back end coders and the rest to do. Really, we should chuck it all out and just start again.

    --
    my blog of work misery - http://beastofbaystreet.com
    1. Re:GUI technology has regressed since the 90s by znrt · · Score: 1

      gui technology? it's the whole software industry. you need aprox the same amount of "experts" to print a fkucing report from persisted data nowadays. not to mention a herd of managers, several whiteboards and a shitload of postits.

    2. Re:GUI technology has regressed since the 90s by Tablizer · · Score: 1

      Job security, shhhhhhhh

      In all seriousness, while it may create job security, many developers would rather spend their time making 20 useful products using write-once-run-everywhere rather than 5 useful products with multiple versions handcrafted for different devices.

      It's kind of boring re-inventing the same app for different devices even if it does pay.

    3. Re:GUI technology has regressed since the 90s by X0563511 · · Score: 1

      Things are a bit more complicated than they used to be...

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  7. Client or Server side? by bobbied · · Score: 1

    I'm not sure how this fixes the problem.

    You either need a client side (the browser decides what image to fetch and how to display it) or a server side (the server decides what image to send) solution here. I suppose you could do a combination of both, but the problem here is who's going to get the resizing work?

    Personally, I think this would be better done on the server side for the most part. That implies that the GET would somehow define for the server enough information about the display available. You are going to need colors supported, user pointer integration (type, minimum size), screen resolution of the user's view both in pixels and actual size. Then the server can decide what page format and image would best fit. All this has to be *independent* of the browser vendor or host platform.

    But hey, good luck getting everybody to sign on to a working interface for this... We cannot get a consistent interface between browser vendors now...

    --
    "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
    1. Re:Client or Server side? by Anonymous Coward · · Score: 0

      I believe that the idea is to provide the different sizes on the server side, but that the browser (and user preferences) determines which version to download.

    2. Re:Client or Server side? by Marc_Hawke · · Score: 1

      Yes, (replying to GrandParent, but agreeing with Parent.)

      Can you explain why it would be better on the server side? I naturally assumed client side. "Get SmallScreen version of Picture." It would then be scaled by the Browser to fit the size determined by the layout.

      I don't think that you'd change the layout based on which images were selected. Everything would look exactly the same, just the byte-size/quality of the image file would be different.

      --
      --Welcome to the Realm of the Hawke--
    3. Re:Client or Server side? by bobbied · · Score: 1

      I believe that the idea is to provide the different sizes on the server side, but that the browser (and user preferences) determines which version to download.

      I get that but it means the server now has multiple URL's to get the picture and these URL's are defined by how the client will format the GET. I'm just pushing the whole page formatting issue to the server so you pull one URL and the server decides which image to give you. Then the server side is free to have the pictures already processed on disk or process them on the fly and is in total control of the formatting on the page. It also frees up network bandwidth and processing and memory requirements for less powerful platforms.

      --
      "File to fit, pound to insert, paint to match" - Aircraft Maintenance 101
    4. Re:Client or Server side? by pspahn · · Score: 1

      I don't think that you'd change the layout based on which images were selected. Everything would look exactly the same, just the byte-size/quality of the image file would be different.

      You are mistaken. In fact, one of the reasons they decided on this method was so that the image is now from layout constraints. You might want to have the image be 400px square on one layout, while it will be 800x600 in another layout.

      On top of that, if you are providing images of varying proportions, you don't really want some computer to auto-crop everything depending on the requesting device since the results will be artistically inferior to a trained human.

      --
      Someone flopped a steamer in the gene pool.
    5. Re:Client or Server side? by SQLGuru · · Score: 1

      Something akin to using a background image and media queries to pick the right version of the image based on the window size?

    6. Re:Client or Server side? by X0563511 · · Score: 2

      Sounds like a perfect use case of HTTP headers. Why would a new HTTP method be required?

      Get the headers? Great! Use them. Don't recognize them? Oh well, ignore them. Don't get them? Use sane defaults.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    7. Re:Client or Server side? by TigerTime · · Score: 2

      You can't scale it on the client side, because one of the core reasons for doing this is to NOT download large images for areas were a mobile connectivity is a factor. So you can't scale it down unless you've already downloaded the large version. This wouldn't work.

      You have to ONLY download the correct size you need.

      This could be done manually with tags, which seems to be the chosen route. However I think what "bobbied" suggested above would be a good automated way of doing it. Say you set up a meta tag using the media queries in the HTML to be "mobile conscious". Then anytime it ran across an , the browser would request images as such: "GET image.jpg?max-width=18em" (or however else the developer defined the meta tags). The web server (which would also need to be aware of this type of request), would then return back a certain sized image. This would require the least amount of effort by the developers and would just need support by the browsers and web servers.

    8. Re:Client or Server side? by fyngyrz · · Score: 2

      layout constraints

      ...doing it wrong. The BROWSER should control the layout. Not the data source.

      --
      I've fallen off your lawn, and I can't get up.
    9. Re:Client or Server side? by Anonymous Coward · · Score: 0

      Sadly, browsers have done a poor job at 'controlling the layout' - especially across multiple devices/resolutions. This is why there are now responsive/adaptive methods to deal with it (e.g., media queries, percentages, background-size, min/max-widths, grid systems). If you think that a design should 'just work' on anything from 320 x 480 to 1920 x 1080 without needing adjustments, then I disagree and would say that by not doing so actually hinders the page's overall usability (e.g., paragraphs/layout that look okay at 1024 x 768 become one line of text at 1920 x 1080), wastes bandwidth (e.g,. downloading images appropriate for 1920 x 1080 on a 320 x 480 display) and could adversely affect image quality (e.g., scaling that 320 x 480 image up to 1920 x 1080).

    10. Re:Client or Server side? by pspahn · · Score: 1

      "... *free from layout constraints" is what I meant. You don't always want an image to be in the same proportion in different layouts.

      --
      Someone flopped a steamer in the gene pool.
  8. Responsive Web Design by vux984 · · Score: 4, Insightful

    " Responsive web design provides a solution: "develop once, works in every device."

    Name one good responsive web design that isn't shit on at least one of desktop or mobile. (And an awful lot of them are shit on both.)

    Anything actually good just builds them separately, and lets you switch between them; and selects as default the right one based on screen size (screen not window) Nothing sucks worse than making a desktop window smaller because you just want to keep one part visible while you work with something else and having the site spontaneously implode into a mobile version -- just one of the countless forms of SUCK thanks to "responsive web design".

    1. Re:Responsive Web Design by peter.kingsbury · · Score: 1

      Name all desktop and mobile combinations which (a) include all contemporary desktop and mobile options, and (b) which don't include shitty desktop and mobile options. Impossible, you say? Then your point is moot.

    2. Re:Responsive Web Design by znrt · · Score: 1

      Nothing sucks worse than making a desktop window smaller because you just want to keep one part visible while you work with something else and having the site spontaneously implode into a mobile version

      current users aren't supposed to be able to do that without extra help or risking injury. didn't you notice the window managers / desktops most of them are using? split the screen? are you nuts???

      by they way, *their* fix for your problem would be eradicating desktop design versions completely. "develop once, works in every device". why should we go through the hassle of developing a desktop version for elitists like you if we're anyway served well enough with a single tap mobile interface, which is what our average collective brain can afford to handle! go away!

    3. Re:Responsive Web Design by vux984 · · Score: 1

      by they way, *their* fix for your problem would be eradicating desktop design versions completely.

      As bad as that is, that would actually be an improvement over the mess that "responsive web design" has made.

      At least then the design would be relatively simple, and it would be easier to maintain. The problem with responsive web designs is that they are inherently complicated and things break or go missing or become inaccessible between the mobile and desktop transitions. Maintenance cycles tend to make them worse as every modification and feature has to be considered in a "responsive context" ... you get tasked with adding this to this column here and that menu item there, and it works on the desktop, but doesn't make any sense on mobile without a complete costly redesign.

    4. Re:Responsive Web Design by znrt · · Score: 1

      a possible mitigation is designing "mobile first" (an industry meme that actually makes sense for a change). this forces to focus on providing core functionality in limited space (i.e.: clarifying what the core functionality is in the first place), from there expand to desktop version. it's not a silver bullet but IF you want to go the "responsive" route it can help and is the way to go. ofc also in maintenance. if that extra column (whatever) doesn't fit well int the mobile version then it might be woth reconsidering if it is a worthy feature at all, or if it's time to start over ... maybe with separate designs.

      sure "responsive" adds a great deal of complexity, and usually results in poorer interfaces and performance (sorry, i should have said "user experience") in general. it should be avoided but it's just all the rage now. guess what, i stopped arguing long ago, i just enjoy laughing my ass of when things get really surreal, which they often do!

    5. Re:Responsive Web Design by TomGreenhaw · · Score: 1

      This one works pretty well: http://www.feedprojects.com/FE...
      It uses gridiculous.

      --
      Greed is the root of all evil.
    6. Re:Responsive Web Design by vux984 · · Score: 1

      Until you click "shop", and then its not responsive anymore.

  9. Caching anyone? by Anonymous Coward · · Score: 0

    There are already technologies to detect user agents, and pull back the correctly sized images from servers. There are also image servers which resize on the fly. And there's CACHING.

  10. It's the 1990s all over again. by oneiros27 · · Score: 5, Insightful

    Back in the days of HTML, they decided that it was awful that the people using dial-up had to wait so long for images to load ... so they came up with the 'lowsrc' attribute to the IMG element:

    <img lowsrc='...' src='...' ...>

    Or, you could could go with the 2000s route, and use CSS's media queries so that you don't try to push large images down to small-screen devices.

    Wouldn't it make more sense to just use a known attribute or method rather than trying to come up with yet another solution every few years?

    --
    Build it, and they will come^Hplain.
    1. Re:It's the 1990s all over again. by Anonymous Coward · · Score: 0

      Wouldn't it make more sense to just use a known attribute or method rather than trying to come up with yet another solution every few years?

      If we come up with a new solution every few years, we can build frameworks around it, and keep our jobs. Also, everyone has to "upgrade" their browsers to get the new UX "innovations" if they want "the web" (meaning "all that crap we did to keep our jobs!") not "to break."

      Sometimes I think we'd be better off if we'd never left the HTML 3.0 trees.

    2. Re:It's the 1990s all over again. by NotSanguine · · Score: 1

      Wouldn't it make more sense to just use a known attribute or method rather than trying to come up with yet another solution every few years?

      That's the wonderful thing about standards. there are so many to choose from!

      --
      No, no, you're not thinking; you're just being logical. --Niels Bohr
    3. Re:It's the 1990s all over again. by tepples · · Score: 2

      <img lowsrc='...' src='...' ...>

      That was never standardized, and its implementation was removed for reasons described in bug 92453.

      Or, you could could go with the 2000s route, and use CSS's media queries so that you don't try to push large images down to small-screen devices.

      Do media queries allow changing the effective src of an img element, or do they work only with background images?

    4. Re:It's the 1990s all over again. by PRMan · · Score: 1

      Lowsrc didn't take high-DPI screens into account, which is what they are trying to solve with Picture.

      --
      Peter predicted that you would "deliberately forget" creation 2000 years ago...
    5. Re:It's the 1990s all over again. by Tablizer · · Score: 1

      LOWSRC has been renamed to the COMCAST attribute :-)

    6. Re:It's the 1990s all over again. by Carewolf · · Score: 1

      <img lowsrc='...' src='...' ...>

      That was never standardized, and its implementation was removed for reasons described in bug 92453.

      Or, you could could go with the 2000s route, and use CSS's media queries so that you don't try to push large images down to small-screen devices.

      Do media queries allow changing the effective src of an img element, or do they work only with background images?

      You could combine it with the CSS 'content' property if supported, or just pretend the background is the foreground, which it tends to be unless you put something in front of it.

      Seriously. This would be better solved by going back to trying to standardize CSS 'content' that way IMG could be implemented using CSS.

    7. Re:It's the 1990s all over again. by POWRSURG · · Score: 1

      This is not supported by Firefox because it violates the CSS spec Basically, replaced elements (img, video, iframe, etc) cannot be modified via the content property because they eliminate any ability to replace them with accessible content. For example, an image cannot be replaced by its alt text.

    8. Re:It's the 1990s all over again. by bananaquackmoo · · Score: 1

      Only the background image. Media queries don't modify HTML, they modify CSS.

    9. Re:It's the 1990s all over again. by Anonymous Coward · · Score: 0

      I don't see a reason unless it was "herp derp we don't know how to handle caching or load failure." Pretty standard attitude for Firefox "developers," though, so why am I surprised.

  11. Unnecessary by Anonymous Coward · · Score: 0

    This is unnecessary as wireless broadband speeds will continue to double and make the size of a graphical image insignificant. Audio now is nearly trivial to send even over mediocre wireless connections. It will only get more trivial.

    1. Re:Unnecessary by Dracos · · Score: 1

      Actually, it's unnecessary because everything picture does could have been added to img instead. There's no semantic difference between the two, so why add a new one? Extending img would have been more backwards compatible as well (one of WHATWG's stated goals, despite doing lots of stupid crap like this).

  12. Kodak had the right idea decades ago by Solandri · · Score: 4, Interesting

    For this solution to work, not only do you need to implement a new HTML element and get the servers and browsers to support it, people uploading photos (or their servers) need to generate and store multiple size versions of the same pic.

    Kodak pretty much solved this problem in the 1990s with their ill-fated Photo CD format. JPEG encodes pictures in sequential 8x8 pixel blocks. So once you set the image size and encoding quality (which determines files size), everything from that point on is committed to those settings. By contrast, Photo CD encoded a low-res Base version of the picture (512x768). A double-resolution version (1024x1536) called 4 Base is then created by doubling the size of the base and storing the (compressed) delta from that and the resized original photo. The process is repeated for 16 Base (2048x3072).

    Essentially, whereas JPEG stores the picture in sequential translated blocks, Photo CD stores the picture in zoomed blocks - kinda like a fractal. If you want the low-res Base version of the picture, you only have to read the first part of the image file. If you want the med-res 4 Base version, you read further along the image file. If you want the high-res 16 Base version, you read the entire image file. (Speaking of which, there was a fractal-based compression algorithm. But the licensing fees were so onerous it never went anywhere.)

    Despite Kodak's eventual demise, they were at the forefront of digital imaging (why they held on as long as they did - they owned most of the digital photography patents). And their engineers put a lot of time and thought into the Photo CD format and future-proofing it.

    1. Re:Kodak had the right idea decades ago by QuasiSteve · · Score: 1

      There's also progressive JPEG - pretty much the same effect, you'd end up displaying a low-res/blurry version of the image first that gradually refines to a higher resolution version, building off of the earlier lower resolutions.

    2. Re:Kodak had the right idea decades ago by Anonymous Coward · · Score: 0

      Doesn't progressive JPEG do something similar?

    3. Re:Kodak had the right idea decades ago by Anonymous Coward · · Score: 0

      Generally, "directory-in-a-file" designs have their own drawbacks, so this was by no means "solved". Kodak wanted to keep physical mediums in a lot of the process of photography. They were blindsided by cheap digital cameras and users wanting a simple file-system-based storage. PhotoCD has other problems, not the least of which is the patent.

    4. Re:Kodak had the right idea decades ago by alexhs · · Score: 1

      AFAIK, PhotoCD uses JPEG. It's just that it's JPEG's hierarchical mode, that nobody else uses. (See my other post)

      --
      I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
    5. Re:Kodak had the right idea decades ago by Anonymous Coward · · Score: 0

      That's not really the same solution to the same problem. This problem is about more than just not wasting bandwidth, it's about art direction. You might want to serve a different file for lower resolutions, not just a "lower resolution" one.

      For instance, perhaps you'd like to serve an SVG for higher res, but a custom-tailored PNG for very lower resolutions. Or you might want to show the user a specific part of an image on smaller screens, or even an entirely different image altogether.

      Besides that, browsers do not have to support Kodak's format now, nor Google's similar (but perhaps less thought-out) kitchen-sink format WebP to "solve" the issues. In fact they can simply avoid format wars entirely, and ask the server for what they can support. Like how they were supposed to work to begin with.

    6. Re:Kodak had the right idea decades ago by StormReaver · · Score: 2

      And [Kodak's] engineers put a lot of time and thought into the Photo CD format and future-proofing it.

      And after the patent restrictions expire, this format may possibly become useful. As it is, this format is completely useless because of the patent threat.

      Software Patents: killing innovation since 1998.

    7. Re:Kodak had the right idea decades ago by Anonymous Coward · · Score: 1

      It's called JPEG2000, uses wavelet transformations instead of discrete cosine transformations that JPEG uses and has been around since over a decade ago. No one uses it.

    8. Re:Kodak had the right idea decades ago by Tablizer · · Score: 1

      Agreed. It would be easier on many levels to promote and support the browser use of a progressive-resolution image-file format rather than overhaul markup standards and load & store multiple image versions on servers.

      Let's hope sanity and logic prevail, and this tag idea is dumped.

      And I hope patent issues don't derail it also.

      Further, we don't have to have an entirely new tag. Just add something like a LOWRES or LOWRESSRC attribute to the existing IMG tag. Old browsers would still use the regular image and ignore the new attribute. This is better backward compatibility than an entirely new tag. An entirely new tag would outright not function in older browsers. (The HTML standard says to ignore any attributes a browser does not recognize rather than skip the entire tag.)

    9. Re:Kodak had the right idea decades ago by dkf · · Score: 1

      It's called JPEG2000, uses wavelet transformations instead of discrete cosine transformations that JPEG uses and has been around since over a decade ago. No one uses it.

      You're wrong there. It's used quite a lot in high-capacity digital image storage. Libraries, that sort of thing. You might have the space and time to waste on using standard JPEG and you might not care too much about the compression artefacts, but libraries really do care. (A billion high-resolution images is only a medium-sized library...)

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
  13. Let's see by armahillo · · Score: 5, Funny

    Let's see how Internet Explorer can manage to munge THIS tag up.

    1. Re:Let's see by bruce_the_loon · · Score: 1

      It will start by downloading the wrong size image first, then repeatedly redownload the image each time the screen refreshes or resizes until you run out of mobile data.

      --
      Trying to become famous by taking photos. Visit my homepage please.
    2. Re:Let's see by Anonymous Coward · · Score: 0

      Internet Explorer on a mobile device? My head asplode.

    3. Re:Let's see by sootman · · Score: 1

      Let's see how Slashdot can manage to munge THIS tag up.

      Good job with the <i> around "real" there, guys.

      --
      Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  14. That's it? by Anonymous Coward · · Score: 0

    How about making autoplay of videos an opt-in type of thing?

    How about stopping all the damn links/like/whatever for social network sites?

    And even Amazon, WTF? I do a search and their site just locks up. And I watch the status bar and it's hitting all these other sites for shit....

    This image thing is being penny wise and pound foolish. Images are not the problem. All the other shit that every website has to bring in is causing the loading latency.

    I mean really, adblock is great for the only reason that it speeds up page loading because advertising servers are shit.

    In other words, images aren't the problem. It's the sites feeding into your site.

    1. Re:That's it? by Dracos · · Score: 1

      I run AdBlock like most /.ers, but it doesn't get the chance to do much because I have ~132,000 hostnames mapped to 0.0.0.0 in my hosts file specifically for this reason (in Linux and Win2k anyway... Vista/7/8 can only handle about 3000). Anyone who watches me surf is amazed at how the Internet looks without ads.

    2. Re:That's it? by tepples · · Score: 1

      If you want to regain support for big honkin' APK hosts files on Windows, you could try writing your own DNS server that runs on localhost and enforces your hosts file before passing other queries off to 8.8.4.4 and 8.8.8.8. I've written a few notes on efficient hosts file processing.

  15. Your Privacy are belong to U.S. ! by Anonymous Coward · · Score: 0

    We have an S.C.A. ongoing. Suspect is swift, slimy, sticky, brown or chrome and spreading like cheap money.

    [1] Super Cookie Alert

  16. Progressive JPEG by tepples · · Score: 2

    Progressive JPEG already does most of that. It breaks up the DCT coefficients into multiple "scans", each of which adds more detail to the image. A slowly loading progressive JPEG starts blurry (suitable for small displays) but fills in with the higher spatial frequencies as it is received. Perhaps what progressive JPEG needs in order to become a best practice for responsive images is a header to tell how big each scan is (in spatial frequency and in bytes) so that the browser can use range requests rather than having to close and reopen a connection once it's seen enough data for a particular pixel density.

    1. Re:Progressive JPEG by AuMatar · · Score: 5, Interesting

      What you'd need there is not file support, but server side support. If you're downloading a single file with all those formats, you're going to have to download everything at once. That's inefficient (important on mobile devices) and slow. Stuffing all the sizes into one container isn't the answer.

      Instead, what you'd like is one URL to automatically send you the correct file(s) for your size(s). For example, you could put headers in the http request giving the desired resolutions and the response could have each of those sizes, in preference order. Basically have each image request turn into a CGI request for multiple files. More or less what this new tag is trying to do client side. Of course doing it client side, while less convenient all around, does have privacy advantages- you can't guess the device type from the sizes requested.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    2. Re:Progressive JPEG by Em+Adespoton · · Score: 2

      you can't guess the device type from the sizes requested.

      Sure you can; the security point is that you can't KNOW the device type from the sizes requested. You have to guess.

      However, it seems to me that using element fingerprinting, this element would be a pretty strong indicator to narrow down who you were.

    3. Re:Progressive JPEG by Frnknstn · · Score: 2

      I don't think you were paying attention to how a progressive .jpg works. The file has only the full-detail image in the file, but the as you load more and more bits from the file, the quality improves from unrecognisably blurry to sharp and detailed.

      Simply request the file from byte 1, load until you get the level of detail you need, then close the connection. If you need more detail later, just resume the download.

      --
      If it's in you sig, it's in your post.
    4. Re:Progressive JPEG by Anonymous Coward · · Score: 0

      Simply request the file from byte 1, load until you get the level of detail you need, then close the connection. If you need more detail later, just resume the download.

      That is a good idea. However, there is the problem that you would have to close/pause the connection and use a separate connection for the subsequent request. That could be a big latency issue on a mobile device. You could get clever with connection management, but it would be ugly.

    5. Re:Progressive JPEG by Intrepid+imaginaut · · Score: 2

      Which is really uncomfortable to look at. My eyes keep trying to focus on the blurry image and can't. Also how do they propose to test client bandwidth, maybe the client is downloading an ISO or five at the same time but wants the higher res images anyway.

      Anyway @media does this already with normal image tags and can be refined to any degree of granualarity needed, and yes img srcs can be changed in CSS.

      And really the plethora of new tags making an appearance is getting weird. I came across a tag recently whose main advantage seems to be in terms of SEO, as in google will probably rate images displayed under higher in sciencey-sounding searches. No indication as to how this won't be abused by spammers just like every other meta-esque tagging scheme, of course.

    6. Re:Progressive JPEG by AuMatar · · Score: 1

      Hmm, decent point. Let me rephrase- its more work to do so when done client side, because it won't be done in 1 chunk, and because those worrying about security can lie and request unneeded sizes as well poisoning the data you're guessing from. Doing it server side makes it trivial.

      --
      I still have more fans than freaks. WTF is wrong with you people?
    7. Re:Progressive JPEG by Anonymous Coward · · Score: 0

      Too bad libjpeg uses 16 times more memory to decode a progressive JPEG, compared to baseline JPEG.

    8. Re:Progressive JPEG by Intrepid+imaginaut · · Score: 1

      Slashcode seems to have erased the tag itself, it was figure, the figure tag.

    9. Re:Progressive JPEG by Anonymous Coward · · Score: 0

      Simply request the file from byte 1, load until you get the level of detail you need, then close the connection. If you need more detail later, just resume the download.

      This is a terrible idea, as it would require the client to establish a completely new HTTP connection for every request rather than using HTTP keepalive. It will also break HTTP caching. It will also not be possible to prevent the server from sending too many bytes, which will sit around in caches between the server and the client.

    10. Re:Progressive JPEG by Frnknstn · · Score: 1

      [quote]require the client to establish a completely new HTTP connection for every request[/quote]

      Yes, like we did until very recently. However this would only be for the very large images. The smaller files are the ones that benefit most from keepalive techniques: the.js, .css, small layout images. They can still be sent on a single connection.

      [quote]It will also break HTTP caching[/quote]

      No, it won't. A cache that serves an incompletely downloaded file is already broken.

      [quote]prevent the server from sending too many bytes, which will sit around in caches between the server and the client.[/quote]

      That... is not how TCP works? The data that is sent to the client before the RST packet reaches the server will not "sit around". It will get delivered and dropped by the client.

      --
      If it's in you sig, it's in your post.
  17. Forget it. by Anonymous Coward · · Score: 0

    JQuery Mobile.

    Works fine.

  18. NoScript by tepples · · Score: 0

    All you have to do is have the client substitute its window x and y size values into that request.

    Good luck doing that if the browser has JavaScript turned off. A lot of Slashdot users, for instance, leave JavaScript turned off for the majority of web sites out of privacy paranoia, out of a fear of non-free software, or to reduce the amount of CPU time and memory the browser spends processing social recommendation and advertisement widgets.

    1. Re:NoScript by neoritter · · Score: 1

      I don't think you need JavaScript to accomplish what he said. I vaguely remember something similar being done on a recent project using Wicket and Java.

    2. Re:NoScript by Anonymous Coward · · Score: 0

      Javascript support? Nonsense.

      Page is whatever.shtml

      Build it any way you want. Doesn't require a darned thing from the user's browser. Use whatever server-side language you want. Everything in the cookies, headers and your filesystem is available to you to make your decisions; you can completely customize the experience from there, using whatever you like, or not using whatever you don't.

      Heck, I've even got a .shtml that uses javascript, but the page CGI customizes the javascript before it gets to run.

      --fyngyrz

      (not at my desk, no idea what my password is, lol -- now that's safe)

  19. Not an open problem. by alexhs · · Score: 1

    Retrieving optimized images from the server, based on device (desktop, tablet, phone) and the device's internet connection (fiber, broadband, mobile), has always been an open problem.

    Nope. It was already solved by the JPEG's hierarchical mode, more than twenty years ago. You're limited to scaled sizes that are the inverse of a power of 2 of the full size, but on the other hand the client wouldn't even need to inform the server and just proceed with a partial download, up to the point where it has enough data for the desired resolution.

    --
    I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
    1. Re:Not an open problem. by Dynedain · · Score: 1

      Fantastic.

      Except I have never seen a web client that handles JPG this way. Not a single one will stop at target resolution, and will continue to load until they have all the bytes of the image. Furthermore, there's plenty of reasons to download the full image size. Perhaps the image needs to resize dynamically after being loaded. Perhaps I rotated my device from portrait to landscape and now I need a larger image to fill the space. There's no pause/resume mechanism in the format to handle this, and the resulting interpolation during a resize effect would look horrendous. Oh, and btw, depending on the image contents, progressive format JPG can actually result in larger file sizes than non-progressive. Lastly, with responsive design, the contents of the image may actually need to be different for different resolutions. For example, embedded text or iconography may not be legible at smaller sizes.

      Now solve for GIF and PNG.

      <picturefill /> is at least a format-agnostic approach that doesn't require extra implementation on the server side, addresses all the above concerns, and can be implemented on browsers that don't currently support it using a little bit of javascript.

      --
      I'm out of my mind right now, but feel free to leave a message.....
    2. Re:Not an open problem. by Dynedain · · Score: 1

      The tag gives a standard way of doing it, and javascript is used already for backporting the functionality to noncompliant browsers.

      --
      I'm out of my mind right now, but feel free to leave a message.....
  20. Designer by CanadianMacFan · · Score: 3, Informative

    Or the graphics designer could just optimize the graphics so that they are the smallest possible size in the first place. Then they are the fastest for everyone. Designers, like programmers, are usually used to having the fastest computers and connections so they forget about people with slower computers and connections.

    1. Re:Designer by AmiMoJo · · Score: 1

      The issue is more to do with widely varying pixel densities of screens, rather than simple size. A standard desktop monitor is about around 100 PPI, but 4k monitors are usually twice that. Some phones and tablets are over 500 PPI. Designers want to provide full resolution images where possible, but even if the phone has a 500 PPI screen it might be on a slow mobile connection. The best thing to do is let the device decide which version it wants.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    2. Re:Designer by thegarbz · · Score: 1

      So they are supposed to prioritise those with poor slow computers at the expense of owners of devices pushing 3+ megapixels of desktop resolution?

      Tell me again why you think optimising for a different device solves the problem rather than making the entire system suitable for all devices?

  21. Which site "collapses"? by tepples · · Score: 1

    Nothing sucks worse than making a desktop window smaller because you just want to keep one part visible while you work with something else and having the site spontaneously implode into a mobile version

    On which public web site have you seen this happen, so that I can go see for myself what you're talking about?

    1. Re:Which site "collapses"? by trevc · · Score: 0

      www.fiattech.com

    2. Re:Which site "collapses"? by Anonymous Coward · · Score: 0
    3. Re:Which site "collapses"? by vux984 · · Score: 4, Insightful

      There are several, but site I was referring to in particular was mashable.com. It came up at work as an example of "good responsive design" to which I argued that it was in fact abysmal.

      These were some of my notes taken at the time (I don't know if they all still apply, but a click glance confirms at least most of them still do)

      Chunks of the site can't be reached from mobile at all - how do I get to "Jobs" or "Advertising" from a smartphone?

      And on the desktop, parts of the site can't be reached depending on the size of the browser window and we're not talking perversely small either: that "more" popup menu on the desktop starts losing sections outright at around 1100px). 1100px is too narrow! Want a job at mashable? They don't have a section for that unless your on a widescreen.

      Worse, if you shrink the page below 1000px wide, you start losing content columns off the home page too -- they're just gone. You can't scroll horizontally to get to them, and unlike the mobile version which displays one column at a time with a column selector to switch, that selector doesn't appear on the desktop. If you shrink your window, you just lose columns. No selector, no scrolling, the content is just gone.

      Additionally the column selector names are different from the desktop column headers... "What's new" is renamed "New" for space and that's fine as the translation is preserved. But "The Next Big Thing" is renamed "Rising" for space -- that's a navigation cue that got lost in translation. If I were to say, 'Look for the article under "The Next Big Thing", ' nobody is going to make that connection.

    4. Re:Which site "collapses"? by Anonymous Coward · · Score: 0

      anandtech.com and theverge.com are good examples

    5. Re:Which site "collapses"? by Anonymous Coward · · Score: 0

      We have actually been in a webinar that demonstrated this new "responsive web design" that they will be pushing on our corporate website (read: forced upon): www.porsche.com and the respective dealerships's [blah].porschedealer.com (where [blah] is the name of the dealership).

    6. Re:Which site "collapses"? by tepples · · Score: 1

      The front page of Porsche USA isn't that bad in my testing (from about 500px to 1024px wide). Things get put in more or fewer columns, but that's similar to what happens to text in any liquid layout. The most drastic changes are the layout of the "Build & Find" menus near the bottom below about 500px and the addition of a "hamburger" menu at the top below about 700px.

    7. Re:Which site "collapses"? by tepples · · Score: 1

      On the front page of FiatTech.com, I don't especially see what's wrong with what appears to be a fairly predictable switch from a 2-column layout to a 1-column layout around 750px. Is horizontal scrolling really better? Or should it have been using the 1-column layout in the first place for all screen sizes?

    8. Re:Which site "collapses"? by tepples · · Score: 1

      AnandTech has the same problem as NCSA: the transition from three columns to two is placed too close to the 1024px mark, causing a "snapped" window on a 1920x1080 pixel display to use a jarringly different layout. I guess they had to do this because the About / Advertising / Bench line and the Trending Topics line are too tightly packed for any sort of flexibility. The Verge has distinct three-, two-, and one column layouts, but they're visually consistent and on the whole no less jarring than what you might expect if you resized an old-skool liquid layout like Slashdot classic's comment pages between the full width of a 1920x1080 display and half the width.

    9. Re:Which site "collapses"? by vux984 · · Score: 1

      Fiattech.com is a VERY small mobile-centric site, with very little content and some presentation logic to optimize its mobile presentation on desktops.

      The articles page for example shows 5 one-line article summaries at a time even on a 1920x1200 desktop. To see all 25 articles I need to page through 5 pages.

        Its usable at this tiny content scale, but its hardly a good desktop design; and if there were much more content its usability limitations would become increasingly apparent.

      Likewise, the home page, on desktop, is reflowing to a single 8-10 screen tall vertical column anything but gratuitous? Practically nobody on a desktop is going to want to USE the site like that.

      Is horizontal scrolling really better?

      On this site, yes. I think it would have been. If the user makes their window that small they probably are trying to just keep one piece of the page in the window, and reflowing forces them to have to re-locate that piece in a 10 page tall stack after they've resized the window, instead of it just staying put.

      Additionally, they get rid of the menu button as the screen widens? Why do that? I don't object to them adding the menu to the title bar when it fits, but why lose the one element of common navigation between the two modes?

      To sum up... yeah this isn't a bad site... but its barely more than a toy project. It does a decent job because there's almost nothing to it.

      And I bet it cost then fortune.

    10. Re:Which site "collapses"? by Anonymous Coward · · Score: 0

      User with 1024x768 resolution. Ctrl +/- will help with this issue in FireFox.

  22. Wrong Way to Solve This Problem by wisnoskij · · Score: 1

    It seems to me that there is a far easier and more effective way to solve this problem.

    This Solution: Have a list of different resolution images for display, have the browser device which one to pick.

    Better Solution: Have an image format based on streaming. As the data is steamed in the resolution increases. Based on my experience with slow internet we already have a format very like this (starts out fussy, but complete, gets more details as the picture finishes loading). The browser just stops the stream when it has an image of the appropriate size. You do not need to have 18 different copies of the same picture lying around and, you do not need to expressly code in every circumstance. The HTML code we already have and have been using for a long time is already capable and it is forward and backwards compatible. Visit a page with your computer hooked up to some some of a kind 40K monitor no problem as long as the original image is of a high quality, visit with a 640X* smartphone screen, no problem. The site designer doe snot have to know every use case, let the browser worry about that.

    --
    Troll is not a replacement for I disagree.
  23. Burn through your cap by tepples · · Score: 1

    In practice, wireless speeds increasing just means you'll burn through your 5 GB per month cap twice as fast.

  24. A list of semantically equivalent image URIs by tepples · · Score: 1

    Actually, it's unnecessary because everything picture does could have been added to img instead. There's no semantic difference between the two, so why add a new one?

    The semantic difference, as I understand it, is that the picture element means "images behind all these URIs are semantically equivalent, and here is a formula to determine which is preferred in a particular environment."

    1. Re:A list of semantically equivalent image URIs by Dracos · · Score: 1

      Images themselves have no semantic value, only the elements that points to them... furthermore, the dimensions of the image are semantically irrelevant. This is a lame, flawed attempt to solve a visual layout problem with misplaced semantics. You wouldn't invent a redundant element for audio files based on varying bitrate because audio similarly has no semantic value and the media type is inherently non-visual.

  25. But how does a browser know how many bytes? by tepples · · Score: 1

    Progressive JPEG is almost a solution but still has a practical problem. Some HTTP servers don't support range requests for some reason, such as if the server's administrator has in the past seen abuse of range requests by "download managers" to try to download six ranges simultaneously. Besides, even on a server that supports range requests, the browser doesn't know in advance how many bytes to download for a particular spatial frequency to be filled in. This means a web browser can't just request enough data for a particular size. Instead, it has to wait until it has seen enough data and then close and reopen the HTTP connection and endure another TLS handshake and another TCP slow start before it can download more things.

    1. Re:But how does a browser know how many bytes? by Anonymous Coward · · Score: 0

      Instead, it has to wait until it has seen enough data and then close and reopen the HTTP connection and endure another TLS handshake and another TCP slow start before it can download more things.

      You are aware that HTTP allows more than one request to be sent on a single connection, right?

    2. Re:But how does a browser know how many bytes? by squiggleslash · · Score: 1

      All good points. That said, this proposal is worse than what you're describing: it only works with specially crafted HTML, requires every browser be upgraded to support it (easier than in the past, but still), and ordinary web browsing, zooming in and out, will cause problems.

      Perhaps a better solution is for the upgrades to occur server side, with browsers adding to the Accepted family of headers information about the resolution and size they're looking for, and how many bytes of the image they have already, with the server responding - IF that header is provided - with a partial download that satisfies the required resolution. If Apache starts to support this natively, no websites need be modified to support the feature no new HTML is needed, and browsers can support the feature as necessary.

      That way the server doesn't have to be configured to turn off countermeasures to download managers and can still use pipelining and reuse existing connections, while the progressive content features of PNG and JPEG can be used to the fullest.

      --
      You are not alone. This is not normal. None of this is normal.
  26. Window size and pixel density in what header? by tepples · · Score: 1

    Everything in the cookies, headers and your filesystem is available to you to make your decisions

    Cookies don't exist for a first time visitor. And since when have HTTP request headers included window size and pixel density?

    1. Re:Window size and pixel density in what header? by Anonymous Coward · · Score: 0

      > Cookies don't exist for a first time visitor.

      1) page is requested, headers are captured
      2) cookie(s) are looked for
      2a) if cookies don't exist, generate new cookie and signal the browser to re-invoke the page request (basically goto 1)
      2b) else use existing cookie(s) and continue with generating page

      Trivial.

      > And since when have HTTP request headers included window size and pixel density?

      Pixel density: Since user-agent has been available. Jeeze, how hard is that?

      Window size: This is not something you should be using. That's something the browser uses to reflow properly designed content. If you're designing content to a fixed window size, you're doing it all wrong and you're one of those people the web hates.

    2. Re:Window size and pixel density in what header? by tepples · · Score: 1

      Pixel density: Since user-agent has been available

      A single combination of web browser and operating system can be used on both low DPI displays and high DPI displays. Consider, for example, Safari on a MacBook with a Retina brand high DPI display and Safari on a MacBook with a normal DPI display.

      Window size: This is not something you should be using. That's something the browser uses to reflow properly designed content

      So if the web page's style sheet specifies that a particular image shall be 50 percent of the width of the viewport, however wide the user might have chosen to make that, how should the server go about determining how many pixels that is in order to serve the correct amount of image detail?

    3. Re:Window size and pixel density in what header? by fyngyrz · · Score: 1

      > A single combination of web browser and operating system can be used on both low DPI displays and high DPI displays.

      If the image is wider than the window, you get scroll bars; also, browsers can resize. It's not the server's job. We don't have a bandwidth shortage. We have a decently flexible content shortage. If you know it's a mac or a PC, you know it's got a desktop range of pixels. Likewise any particular smartphone. There's no mystery here worth noticing.

      Don't resize images with the viewport. That's very annoying. They should reflow with the window according to the browser's settings. If you set a constant width, then you're asking for scroll bars if the window can't fit that width. This all works very well. It has for a long time. Stop trying to make it not work.

      Just because you can do something, doesn't mean you should do something. You could make both the text and the background black -- but you wouldn't, right? Because it's highly unfriendly, to say the least. Well, so is locking the user's browser view to particular widths and heights and sizes and positions. HTML was intended as the content provider; the browser intended to be the content formatter, using only hints -- lines, paragraphs, font styling, etc. The closer you can get to that in web page design, the better web page designer you are, because then the user gets to fit the thing into the window the user wants it to be in.

      Every time I run into a page that makes me resize my browser to make the damn thing work, I curse. Every time. Every time some whackjob decides that menus should drop or windows should open when my mouse pointer crosses some object, I curse. Every time I run into some page (like liveaquaria.com's) that won't run its cart or checkout through the usual standard ports and protocols, when everything else from Amazon to the tiniest little retailer and back to EBay will, I try to find somewhere else to shop.

      Stop trying to be clever with the page. Instead, be clever with what you put on the page.

      --
      I've fallen off your lawn, and I can't get up.
    4. Re:Window size and pixel density in what header? by tepples · · Score: 2

      also, browsers can resize. It's not the server's job

      It's the server's job if the user doesn't want to have to download an ultra-high-resolution image over a metered connection. It also used to be the server's job back when web browsers insisted on using nearest neighbor resampling instead of bilinear or bicubic resampling.

      We don't have a bandwidth shortage.

      You appear not to know what it's like to be stuck on the 10 GB per month cap of wireless (satellite or cellular) home Internet access.

      If you know it's a mac or a PC, you know it's got a desktop range of pixels.

      But is that 1024 pixels wide with huge distracting white areas on both sides when viewed on a 2560 pixel monitor, or is it 2560 pixels wide with complete inability to see the entire image at once on a 1024 pixel monitor like the one in my laptop?

      Likewise any particular smartphone.

      A tablet held in landscape orientation runs the same operating system as a smartphone held in portrait orientation, despite the latter having only about one-third the horizontal width.

      Don't resize images with the viewport. That's very annoying. They should reflow with the window according to the browser's settings. If you set a constant width, then you're asking for scroll bars if the window can't fit that width.

      So what should a designer who doesn't want horizontal scrollbars do?

      HTML was intended as the content provider; the browser intended to be the content formatter

      And CSS (Cascading Style Sheets) was supposed to be the instructions that the content formatter follows.

      using only hints -- lines, paragraphs, font styling, etc. The closer you can get to that in web page design

      I imagine that as of 2014, most people would not prefer that most web pages look like Barry T. Smith's MFing Web Site. They would consider the default styling that a browser applies to the MFing Web Site to be unprofessional.

      Every time some whackjob decides that menus should drop or windows should open when my mouse pointer crosses some object, I curse.

      How would you prefer that a menu be opened while JavaScript is turned off? To the best of my knowledge, CSS supports only hover-to-show, not click-to-show.

      Every time I run into some page (like liveaquaria.com's) that won't run its cart or checkout through the usual standard ports and protocols

      Could you describe what nonstandard "ports and protocols" liveaquaria.com uses? I tried to buy a coral to test what you describe, but it required me to create a username and password before I could check out. Is the need to register before checking out part of the problem you describe? I do know that some manufacturers, such as Games Workshop, have a policy of forbidding online stores from selling their products through a standard shopping cart.

  27. Can anybody tell me, please by Mister+Liberty · · Score: 1

    What with desktop screen become wider and wider over the past ten years, what with mobile screens being and staying portrait troughout, what with rationalizations given for each of these trends, these rationalizations being apparently highly selective of their own conclusions -- anybody please, tell me where the rationale is in keeping, in wanting to keep, in wanting to program consciously, to remain within the sapproriate standards, to keep ergnomics in mind, to... well, believe anything that has ever been brought up to justify 'the industry's' decisions in manufacture and marketing?

    1. Re:Can anybody tell me, please by Anonymous Coward · · Score: 0

      Desktop screens have had two sizes in the past 10 years to my knowledge: 4:3 and 16:9 (or close to it), so they have not been getting wider and wider. As for the why - computers have always had landscape screens and smartphones started out with portrait screens. Landscape is better for video (like a TV), portrait is easier for reading text. I think Blackberries had a square screen, and there was a (or a few) slide out keyboard phones that had a wide screen. But, I'd say the #1 reason screens are the way they are is "people expect it".

    2. Re:Can anybody tell me, please by tepples · · Score: 1

      Desktop screens have had two sizes in the past 10 years to my knowledge: 4:3 and 16:9

      Display aspect ratios aren't "sizes". A 24" desktop display can show a lot more than a 10" netbook or tablet display, even if they're both close to 16:9.

    3. Re:Can anybody tell me, please by pspahn · · Score: 1

      I don't know, what is the rationale in asking such a long-winded question when you could have made it clearer by saying it in about seven words?

      Why trust industry standards when they are so fleeting?

      Maybe you'd rather have standards that last forever? Or possibly no standards at all? What exactly are you getting at?

      --
      Someone flopped a steamer in the gene pool.
    4. Re:Can anybody tell me, please by Carewolf · · Score: 1

      Desktop screens have had two sizes in the past 10 years to my knowledge: 4:3 and 16:9 (or close to it), so they have not been getting wider and wider.

      I you start at 4:3 moving over whatever the hell 1280x1024 was, then back to 4:3 a too short flirt with 3:2 then settling on 16:10 before dumping it for 16:9, and now trying to argue 32:9 is what everybody (should) want. Sounds like the desktop screens are getting wider and wider to me.

    5. Re:Can anybody tell me, please by fyngyrz · · Score: 1

      Desktop screens have had two sizes in the past 10 years to my knowledge: 4:3 and 16:9 (or close to it),

      Irrelevant. All you really need to know is that pixels are square. It's been some time since we had to deal with non-square pixels. Everything else should be up to the user's browser window.

      --
      I've fallen off your lawn, and I can't get up.
    6. Re:Can anybody tell me, please by fyngyrz · · Score: 1

      That depends on the DPI. My phone, very small indeed, is 1080x1920 (or 1920x1080 if I'm holding it funny.) One of the monitors on my 8-core desktop is 1280x1024.

      The DPI difference between them is radical. Even so, any properly designed page will allow the user's browser to resize and reflow the content to fit the window if it's of any sane width (probably only wide enough to render the longest word in the content.) If it can't do that, the browser should hand you scroll bars. Be nice if the browser had a user setting "minimum width before scroll bars", too. That'd be a joy.

      Fixed aspect / resolution webpages are horrible.

      That, and "hover" menus and windows are the #1 reason why I surf away from web pages.

      Tip to "designers": If I didn't CLICK on it, I didn't WANT it, and that means ITS IN MY FUCKING WAY

      (cough) Sorry.

      --
      I've fallen off your lawn, and I can't get up.
  28. Smallest possible byte size depends on viewport by tepples · · Score: 1

    The smallest possible size in bytes for a photo in a 100x100 pixel viewport isn't the same as the smallest possible size in bytes for the same photo in an 800x800 pixel viewport, unless you want unacceptable blurring on the larger viewport.

  29. Bah by Anonymous Coward · · Score: 2

    Or, it could can just be ignored it from day one, like I did. All my pages still work fine. I never lost sight of the idea that the content was key, and that the interior-designer fascination with "GUI design" was so much ridiculous overkill.

    o Does the page work, and quickly? Yes? Fine.
    o Is the writing high quality and cover the subject at hand thoroughly? Yes? Perfect.
    o Is it image heavy? Probably want to rethink it, because you're probably just producing pablum for the tl;dr masses.
    o Does it need input? Server-side CGI then.

    HTML, CSS and CGI can easily and consistently handle 99.99% of everything. And you probably don't really need that last .01%

    And guess what? Your pages can work on everything that is even somewhat modern.

    I'll grant you that the bloody browser makers could do a better job with consistent support of CSS, but other than that one wart, it's all a doddle. IF you know what you're doing.

    1. Re:Bah by Anonymous Coward · · Score: 1

      "Think how much work is needed to design a car. Something that a single designer could once have cooked up themselves now takes teams of designers, ergonomics people, NURBS authors, back-room engineers and the rest to do."

      "That's OK, I ride a bicycle."

  30. Let's see by Anonymous Coward · · Score: 0

    Using any webserver other than IIS will make it download the super-ultra-hires version everytime, proving IIS is the fatest web server.

  31. Offline browsing by tepples · · Score: 2

    I agree that images for the foreground page should be prioritized. But not loading images for background tabs at all would break offline use. Consider someone who loads up on web pages to read on a laptop before boarding a bus: load tabs in the background, close the lid to put it in suspend, board the bus, open the lid, and then view the pages.

  32. Overhead of dozens of requests by tepples · · Score: 1

    Sending a separate request for each 10,000 byte chunk of the picture will increase latency, as the browser has to look at each downloaded chunk and decode it to see whether it should send another request. It'll also burn through more of the user's data plan as the request headers and response headers are resent for each chunk. How should the browser estimate how big the chunk should be for a given pixel count?

  33. Layne's Law break: "semantic value" by tepples · · Score: 1

    Images themselves have no semantic value

    I detect definition disagreement, and this thread can't usefully continue until we clear this up. I'm unfamiliar with the definition of "semantic value" that you're using. Is it from a standard? If so, which?

    You wouldn't invent a redundant element for audio files

    Except they did just that. The audio element allows specifying multiple otherwise equivalent sources, each in a source element, so that the browser can choose the most technically appropriate one. This allows letting the browser choose, say, an MPEG-family format if it's an Apple or Microsoft browser or a royalty-free format if it's a third-party browser.

  34. Variable crop by tepples · · Score: 1

    A progressive resolution image format wouldn't help art directors show the image with a tighter crop on devices with lower pixel density.

    1. Re:Variable crop by Tablizer · · Score: 1

      I'd argue that's business logic to be handled by custom programming rather than something to be hard-wired into a GUI design spec. The circumstances, thresholds, and device sizes are too varied.

    2. Re:Variable crop by tepples · · Score: 1

      I'd argue that's business logic to be handled by custom programming rather than something to be hard-wired into a GUI design spec. The circumstances, thresholds, and device sizes are too varied.

      Which is why the <picture> element lets the HTML document specify the thresholds for each picture in a declarative manner. This way, "custom programming" in the website maintenance system lets the site's writers and editors describe the logic for each class of media without having to run script on the end user's machine.

    3. Re:Variable crop by Tablizer · · Score: 1

      There are more important things to fix/improve about HTML/CSS/DOM/JS. That's not high on my list.

  35. waste of time... by Anonymous Coward · · Score: 0

    They're already putting 2k displays on phones.. it's just a matter of time until they put 4k displays on phones and then there's no way a browser is going to download a lower resolution image for the device. The screen is 4k so just download the big picture....

    Never mind that you can't see the difference unless you're extremely nearsighted and don't have your glasses on.

    1. Re:waste of time... by kelemvor4 · · Score: 1

      They're already putting 2k displays on phones.. it's just a matter of time until they put 4k displays on phones and then there's no way a browser is going to download a lower resolution image for the device. The screen is 4k so just download the big picture....

      Never mind that you can't see the difference unless you're extremely nearsighted and don't have your glasses on.

      Low res is the new "thin".

  36. NCSA is doing it wrong by tepples · · Score: 1

    Ouch. That transition from 2 columns to 1 is so close to 1024px it sickens me. Even a browser window snapped to half of a 1920x1080 screen, or a user of a 1024x600px netbook whose scroll bars are set just wider than normal, would get the 1-column layout with a hamburger menu on the front page of NCSA's web site.

  37. Mashable sucks in other ways too by tepples · · Score: 1

    Yeah, I see the problems you point out with Mashable's front page in Firefox at 500-1024px, and I agree with you that Mashable is doing it wrong. But those are fixable problems if only Mashable management had the sense to correct the design. You're not claiming that the very opportunity to do width transitions wrong justifies removing the media queries feature entirely, are you?

    Anyway, badly done viewport width transitions are consistent with other problems I see on Mashable, such as that damn "infinite scrolling". I think infinite scrolling is a crock of $#!+ on desktop; the scrollbar control just wasn't designed for it. Give me defined pages any day of the week. Literally. Just give me a page for each date so that I can link to the collection of stories that the site ran on a particular day (or week or month for a less busy site).

    1. Re:Mashable sucks in other ways too by vux984 · · Score: 1

      " But those are fixable problems if only Mashable management had the sense to correct the design."

      Yes.

      "You're not claiming that the very opportunity to do width transitions wrong justifies removing the media queries feature entirely, are you?"

      I'm claiming that proposing a responsive design using media queries as a solution to designing a site for desktop and mobile users is generally more work and harder to get right than just building two separate sites.

      To make a (flying) car analogy:

      "Responsive design" is to the problem of wanting a single website for mobile and desktop websites what "roadable aircraft" are to the problem of wanting a flying hover car. They are not simpler, or easier. They are a 'solution' only in the loosest sense of the word.

      That's not to say that its not possible to build a decent one, but when you are working with a web developer on a site, and you say "ok, what about mobile?" and if he says "No problem, I'll use a responsive design" that's a HUGE red flag to run away screaming.

      "Responsive designs", are called the "solution" to the problem of mobile and desktop design, but its a solution the same way roadable aircraft are a solution -- they're clumsy, they're fragile, they are vastly more expensive to produce and maintain, and most people don't really want to use one.

      Should we take away the ability of people to produce them? Of course not, but web designers should pull their heads of out their collective asses and stop promising flying hovercars and then delivering poorly conceived roadable aircraft.

      Anyway, badly done viewport width transitions are consistent with other problems I see on Mashable, such as that damn "infinite scrolling"

      Agreed 100%. Although I contend that its not even all that good on mobiles either.

  38. The 90's called by future+assassin · · Score: 1

    they want their "we'll be the first to have this tag in our browser" back. Shouldn't all browser have the tag at the same time to save people headaches?

    --
    by TheSpoom (715771) Uncaring Linux user here. I have nothing to add to this but please continue. *munches popcorn*
    1. Re:The 90's called by Dynedain · · Score: 1

      Developers are already using the tag today with javascript libraries to backport to noncompliant browsers. As browsers adopt the standard, the transition will be seamless.

      https://github.com/scottjehl/p...

      --
      I'm out of my mind right now, but feel free to leave a message.....
  39. Responsive Web Design by Sky-217 · · Score: 1
  40. Doesn't CSS Already Solve This? by Carcass666 · · Score: 1

    You set up a background image for elements in CSS, with the appropriate media queries. What do we need another new tag for? If you are building responsive sites, you should be managing it in CSS anyway. Embedding CSS type media queries into a document tag is about the same as including embedded styles instead of classes. It makes for ugly and redundant HTML (okay, HTML itself is redundant, but stating that would be redundant... er...).

    1. Re:Doesn't CSS Already Solve This? by radio4fan · · Score: 1

      The problem here is the separation of content and style.

      Sometimes images are style (replace an H1 with an image), sometimes they're content ('Granny feeding the ducks at the park').

      The first example should be in the CSS, the second in the HTML.

      Putting content in the stylesheet is as bad as putting styles in the markup.

  41. Hover menus work with CSS + noscript by tepples · · Score: 1

    That, and "hover" menus and windows are the #1 reason why I surf away from web pages.

    Tip to "designers": If I didn't CLICK on it, I didn't WANT it, and that means ITS IN MY FUCKING WAY

    Perhaps the difference comes from limits in CSS. A menu that opens on mouseover works with CSS turned on and JavaScript turned off; a menu that opens on click requires JavaScript.

    1. Re:Hover menus work with CSS + noscript by Anonymous Coward · · Score: 0

      But a link is pure HTML.

    2. Re:Hover menus work with CSS + noscript by tepples · · Score: 1

      Only so many links can be shown at once in a given space. A menu makes more links available to the user than can be reasonably shown at once. Or are you recommending putting the links that would be in the menu on a separate page instead?

  42. Why bother tepples? by Anonymous Coward · · Score: 0

    What you're suggesting adds more moving parts complexity + room for breakdown & wastes resources. Hosts do what's needed already.

    Hosts IS efficient (more than a local dns server is by far, per what I just stated above) WHEN COMBINED with what I put out below, especially...

    APK

    P.S.=> Especially via APK Hosts File Engine 9.0++ 32/64-bit -> http://start64.com/index.php?o... combined with OpenDNS as an EXTERNAL dns system that's DNSSEC secured between it & its upstream updaters AND patched vs. the Kaminsky redirect security flaw (which 99.999% of ISP DNS' aren't)... apk

  43. 7 onwards etc. can handle more too by Anonymous Coward · · Score: 0

    Cut the DNS local clientside cache service: It's THAT simple saving resources it's using too (cpu, ram, other forms of I/O) & making up for its indexing is EASY TOO, especially via this program I wrote for that -> APK Hosts File Engine 9.0++ 32/64-bit http://start64.com/index.php?o...

    * It has a "speedup favorite sites" tab that takes your FAVORITE websites & places them in hosts, hardcoded, which is FASTER than remote dns lookups (& lightens loads on DNS servers too, bonus), keeps you secure/anonymized by keeping you off dns request logs too... for instance, I keep 24 that way @ the TOP of my custom hosts file (rest are 3,121,350++ blocked adbanner servers or known bad sites/servers etc.) - that equates to 2-3++ MILLION index searches (do the math).

    That's MORE THAN ADEQUATE to get you speed that's BETTER than REMOTE DNS by far, since the majority of what's in a "huge hosts file" like mine, are blocked since they're bad (who CARES 'how fast' I "get to those" since I never intended to in the 1st place since they're known bad & blocked).

    Windows 8 needs to have its "Windows Defender" disabled too (MS screwed the pooch on hosts with it) for hosts to work right with it, in addition to dnscache being cut also (Windows 8 sux though anyhow, lol).

    APK

    P.S.=> You CAN "get the best of both worlds" with hosts, especially in combination with remote DNS (OpenDNS especially - they're DNSSEC secured between themselves & upstream updaters they use AND they're patched vs. the Kaminsky redirect poisoning security flaw (99.999% of ISP dns', aren't...))

    ... apk

  44. How useful by kelemvor4 · · Score: 1

    Because you couldn't do this without yet another tag, right? Oh yeah.. I guess you could have done it with IMG.. oh well.

  45. SVG by Anonymous Coward · · Score: 0

    Just use SVG for every image!

  46. While we're at it... CLIP 'n FLIP? by TheRealHocusLocus · · Score: 1

    Where one can specify a X1Y1+WIDTHHEIGHT region of the image and that, not the full image, becomes what is actually rendered or stretched by the element.

    And if either the X and/or Y have a MINUS sign, then the same absolute coordinates are used -- but also the presence of the sign causes the browser to FLIP the image horizontally, vertically or both. This deals with the case of mirror elements.

    Modern web pages are full of small design elements such as bits of custom corners, tiles that are stretched horizontally and vertically and small recurring icons and pieces that are common to many pages. There can be dozens of these unique elements all told.

    Wouldn't it be nice if only ONE image that has been carefully crafted to contain these rectangular regions, is loaded to the client, thus keeping all these bits and pieces from spamming the world's server logs and keepalive sessions?

    Yes one can do something like this active scripting and with layers and canvas, but putting clip'n'flip into a newly designed PICTURE tag would achieve what I've been suggesting since... 1995. It would give me personal closure. It would make me feel needed.

    --
    <blink>down the rabbit hole</blink>
    1. Re:While we're at it... CLIP 'n FLIP? by Anonymous Coward · · Score: 0

      the presence of the sign causes the browser to FLIP the image

      Please, God, no. Negative X,Y means "add a border". We have boolean attributes if you want boolean attributes. This isn't the fucking 80s, we don't need to overload two separate things into 16 bits any more.

      Anyway, you can already do this in CSS. In fact, notice that's lesson #1 in "CSS Image Techniques" because, like you say, it's kinda useful ...

  47. Bah by Anonymous Coward · · Score: 0

    What shit-show of a place do you work at? Just want to make sure not to get tangled up with that company.