Mailinglist Archive: opensuse (908 mails)

< Previous Next >
Re: [opensuse] apache 2.4 performance issue / processwire.
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Wed, 08 Jun 2016 17:33:15 +0200
  • Message-id: <nj9drr$pip$2@saturn.local.net>
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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups