Anton Aylward wrote:
On 06/08/2016 09:35 AM, Per Jessen wrote:
You can quite reasonably say this is a server error. If the page designer had resized the image to the required dimensions in the first place, it would be smaller, quicker to download, and would not need resizing by the browser.
How does the designer know beforehand which size will be required? The background image on the first page is 1500x1000, probably a reasonable compromise.
That might be OK for a banner; thee are a few page templates that start with a large image at the top.
But for a portable device that's outrageous!
The answer to "how" _might_ be that the HTML code has a conditional.
Too much load on the server, much better to leave it to the client to sort out.
It asks what the browser is, the browser itself knows, and the "IF" clause deals differently with, for example, Internet Explorer vs Firefox. You'll see this quite often a IE handles some CSS differently.
Sure, but how does it know which size images it needs to produce?
However there's also JavaScript.
Yes, I know you could feed back the screen dimensions with JS, but by now it would be much cheaper to just leave it to the client to sort out, which is what everybody does. For mobile devices, don't people usually/often write separate sites anyway? -- Per Jessen, Zürich (16.6°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org