Re: MWABP: Revised text for Device Capability Detection.

On Fri, Jun 19, 2009 at 12:16 PM, Bruce Lawson <brucel@opera.com> wrote:

> On Fri, 19 Jun 2009 11:53:57 +0100, Adam Connors <adamconnors@google.com>
> wrote:
>
>  Great. Bullet-point added... Would somebody more familiar with the
>> technology be able to supply a short summary please.
>>
>
> How about: CSS  provides a mechanism called media queries
> http://www.w3.org/TR/css3-mediaqueries/ whereby developers can provide
> stylerules depending on certain attributes of the device such as
> device-width, aspect ratio, number of colours supported. This can reflow
> content, provide different fonts or differently-sized backgroud images, or
> hide images etc.
>

Thanks. Added.


>
> - sidenote; if CSS has "display:none" for an image/ element with a
> background image, should we recommend that it not be downloaded until it's
> needed, or would that introduce too much delay if CSS or JAvaScript
> subsequently changed that display value?
>

This is controlled by the browser implementation and not in the control of
an application developer. You can hack around it in JavaScript to get a
deferred image load, but it's a bit low-level / technical for this doc IMO.

Received on Friday, 19 June 2009 11:53:06 UTC