Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

mobile-web · Mobile Web

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 682
  • Category: Web Design
  • Founded: Sep 15, 2010
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 599 - 628 of 881   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#599 From: Jordan Dobson <jordandobson@...>
Date: Fri Jul 15, 2011 7:26 am
Subject: Re: Organizing css files for mobile site
jordanrdobson
Send Email Send Email
 
As far as dealing with retina images... I haven't really been worrying about providing two sizes for Images I use in the UI. Essentially I always use the retina version and I use either background-size, content: url() + width & height, or just size the image tag to the proper. This is mainly for lightweight UI elements however. Just make sure your images are even height and width so it scales down well. This should then cover all screen resolutions.

Also I would say start with dumb phone styles first as the catch all and enhance as you go.

I really recommend using Base64 encoded images in your CSS for UI elements as much as possible. That way you ensure when your CSS is loaded and ready that your images are as well. Nothing looks worse than seeing your app with no icons... and then they flash/trickle in.

I definitely need to look into some conditional resource loader... are there others besides yepnope that people recommend?

- J


On Thu, Jul 14, 2011 at 11:57 PM, Jess Jacobs <simulacran.hero@...> wrote:
 

You could also throw in yepnope/some other conditional resource loader and leverage localStorage (where supported) to add a caching bonus!


On Jul 14, 2011, at 3:04 PM, James Pearce <jamesgpearce@...> wrote:

 

Wow. All I can add to this incredible list is to highly recommend using Sass/Compass (or something similar)... this will give you more control and parameterization and optimization your stylesheets if you decide to have derived versions of one common look.



As well as just being lots of fun.

James


On 14 July 2011 17:50, Brad Frost <frostbd@...> wrote:
 

Excellent question. This would be a great thread to get a lot of opinions on, simply because I think there's a lot of theories out there and a lot of knowledge to be had from personal experiences.

Here's a few of my thoughts:

  • Keep the number of files down - reducing http requests is obviously an important part of site performance, but also I personally find it difficult to manage multiple files (base,mid,smartphone, etc) when authoring (What goes where? Is this being included or not?)
  • Enhance up and let the cascade work for you - starting declarations with the most universal properties and ending with smartphone flourishes (-webkit-border-radius et all) help keeps things in order for me.  It can get a little confusing declaring 'background' 3-4 times but following that top-to-bottom, left-to-right model of enhancement allows the experience to scale quite nicely as browser support increases. It's important to manage client/team expectations and help them understand why every platform (WP7, Blackberry <6.0, etc) don't have all the rounded corners, gradients, etc and explain why the page speed > aesthetic consistency in the mobile web.
  • Reduce images where possible - you said you are using CSS gradients and other CSS techniques to reduce the number of images on the page. Awesome. Data URIs can be a good thing as long as they don't get too large.
  • Media Queries - It's a judgement call of whether your portrait and landscape modes differ that much that it constitutes a separate file to be included in the head.  Sometimes it's just a few lines of code and in those cases I'll simply include it in the bottom of my main stylesheet
  • Develop a fluid architecture - This may seem like a "no-duh" comment, but nice fluid layouts can help keep things from getting overly complicated and having to declare extra rules to accommodate multiple screen sizes. You definitely want to avoid rules like this: .container { width: 320px; }.  It's quite fun developing a site on a 24" screen (while of course having multiple devices in front of me as well) to ensure that the layout is REALLY scalable.
  • Use border to bulletproof - Some projects have required optimizing for Blackberry 4.2 (OF COURSE the client has an old crusty Blackberry) and some other older crappier mobile browsers. These browsers misinterpret staple things like margin and padding, so we resorted using the 'border' property to create space around objects. Obviously something you'd want to avoid, but it will work in a pinch.
  • Floats - image on the left, text on the right. Pretty basic technique, but just make sure that you accommodate for devices that are a) too small to display the content side by side and b) simply don't support floats. How do those side by side elements looked stacked.
  • Retina Display - I'd love to hear some other people's thoughts on this because honestly I haven't done too much CSS optimization for Retina Displays. Any optimizations I've ever done were on <img> elements

I don't even want to get into code organization because that can get really political (there's enough shouting matches in the desktop web about the "right way" to organize things).

I'm curious to hear from Bryan and Stephanie Reiger who helped develop the Nokia templates , which utilize multiple tiers. It's definitely worth downloading to see how they're structured.  James Pearce used those in the WP Mobile Pack so he might be able to weigh in. 

I'd love to hear some more opinions/experiences on how you structure your CSS so we can start collectively establishing some best practices around designing for the mobile web!
__________________________________
Brad Frost
http://bradfrostweb.com
http://twitter.com/brad_frost




On Thu, Jul 14, 2011 at 7:51 PM, ca1ebo <carbon.caleb@...> wrote:
 

Hello,

I'm currently working on creating styles on a mobile specific site, the site will be mainly supporting smart phones such as iphone & android, everything else like Windows7, Nokia N series only require basic support.

I've implemented some modern browser supported css features to style such as text-shadow, border-radius, gradient background etc.

The dilemma i'm having is how to organize my styles. Things I need to consider are:
- media queries used to target landscape & portrait mode on iphone.
- retina display for iphone 4.
- base style to support windows7 that runs IE7.

So the question is what's the best way to future proof for maintainability? Any example structure?
Should I have a seperate css file for browsers that support css3?
Should I have a seperate css file for browsers that support retina display?

Keep in mind that I'll be able to combine and minify my css files into one on production environment...

Any advice is most appreciated :)






--
Jordan Dobson  Designer / Developer  425-444-8014  JordanDobson.com

#600 From: Luca Passani <luca.passani@...>
Date: Fri Jul 15, 2011 7:48 am
Subject: Re: Organizing css files for mobile site
luca_passani
Send Email Send Email
 
On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>
>
> Also I would say start with dumb phone styles first as the catch all and
> enhance as you go.
>
> I really recommend using Base64 encoded images in your CSS for UI elements as
> much as possible. That way you ensure when your CSS is loaded and ready that
> your images are as well. Nothing looks worse than seeing your app with no
> icons... and then they flash/trickle in.
>

WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
(the Base64 trick you just mentioned).

Basically, you can conditionally do stuff like:

if (device.getCapability("image_inlining")) {
      write( <img src="data:image/png Util.base64("my_pic.png")" ..>
} else {
      write( <img src="my_pic.png" ..>
}

this is being used successfully by a major social network provider to enhance UX
on devices that support the feature.

Luca

#601 From: "ulrich.steffens" <ulrich@...>
Date: Fri Jul 15, 2011 8:00 am
Subject: Everything fonts
ulrich.steffens
Send Email Send Email
 
Hello group,

I'm in the process of creating a mobile site for a client and i was wondering
what best pratices exist and you would recommend declaring fonts in css?
I'm thinking of em vs. px, etc...

Any hint is *greatly* appreciated!

Thanks.

  Ulrich

#602 From: Stefan Hanke <pazifikwelle@...>
Date: Fri Jul 15, 2011 8:14 am
Subject: Re: Everything fonts
pazifikwelle@...
Send Email Send Email
 

Hello Group, Hello Ulrich,

It depends a bit on the targeted devices/range.
But nowadays I'd recommend to declare a font-size in the body(prefer percentage) and then em everywhere.

Regards
Stefan

***
Stefan Hanke
mail@... || pazifikwelle@...
+491724264228
This mail was sent using my Nexus Phone. I apologize for brevity and misspellings.
***

Am 15.07.2011 10:01 schrieb "ulrich.steffens" <ulrich@...>:

#603 From: Barney Carroll <barney.carroll@...>
Date: Fri Jul 15, 2011 8:25 am
Subject: Re: Organizing css files for mobile site
barney.carroll@...
Send Email Send Email
 
As regards inline encoding of images in situ with regards to a smooth loading UX
for graphics-dependent UIs:

Any conscientiously integrated front end would surely use sprites for
significantly better image data byte-size and a load-once-all-accounted-for
approach … I believe this is a fairly well-established standard in front-end
optimisation… At which point having said sprite loaded via a visually hidden
image element near the top of the page and referenced as and when necessary in
the CSS both ensures the image will be loaded before rendering and avoids
bloated heavily-fringe-case-targetted CSS code — while happily leaving the
image out of the resource-loading process if, by whatever means, the user agent
is set not to load or display images.

Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly
use-case specific code forking, not to mention heavy inference dependence, I
struggle to imagine realistic use-case scenarios where this option is not
massively lighter — with fall-back built in via more reliable traditional
methods.

As I say this, I'm sure I'm missing a trick — can someone point me to
resources describing the case for base-64 encoding as a routine byte-saving
procedure in more detail?


Regards,

Barney Carroll
(+44) 742 9177 278

On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:

>
> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>
>>
>> Also I would say start with dumb phone styles first as the catch all and
>> enhance as you go.
>>
>> I really recommend using Base64 encoded images in your CSS for UI elements as
>> much as possible. That way you ensure when your CSS is loaded and ready that
>> your images are as well. Nothing looks worse than seeing your app with no
>> icons... and then they flash/trickle in.
>>
>
> WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
> (the Base64 trick you just mentioned).
>
> Basically, you can conditionally do stuff like:
>
> if (device.getCapability("image_inlining")) {
>     write( <img src="data:image/png Util.base64("my_pic.png")" ..>
> } else {
>     write( <img src="my_pic.png" ..>
> }
>
> this is being used successfully by a major social network provider to enhance
UX
> on devices that support the feature.
>
> Luca
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#604 From: Jordan Dobson <jordandobson@...>
Date: Fri Jul 15, 2011 8:37 am
Subject: Re: Everything fonts
jordanrdobson
Send Email Send Email
 
Also - You should use rem instead of em to make your life much simpler if your targeted browsers support it. I'm pretty sure most do.

Otherwise Stefan is spot on.

On Fri, Jul 15, 2011 at 1:14 AM, Stefan Hanke <pazifikwelle@...> wrote:
 

Hello Group, Hello Ulrich,

It depends a bit on the targeted devices/range.
But nowadays I'd recommend to declare a font-size in the body(prefer percentage) and then em everywhere.

Regards
Stefan

***
Stefan Hanke
mail@... || pazifikwelle@...
+491724264228
This mail was sent using my Nexus Phone. I apologize for brevity and misspellings.
***

Am 15.07.2011 10:01 schrieb "ulrich.steffens" <ulrich@...>:




--
Jordan Dobson  Designer / Developer  425-444-8014  JordanDobson.com

#605 From: Luca Passani <luca.passani@...>
Date: Fri Jul 15, 2011 8:41 am
Subject: Re: Organizing css files for mobile site
luca_passani
Send Email Send Email
 
this one should take you there:

http://en.wikipedia.org/wiki/Data_URI_scheme

as you can imagine, some device/browser combinations support data uri. Some
don't.

Luca

On 7/15/2011 10:25 AM, Barney Carroll wrote:
>
>
> As regards inline encoding of images in situ with regards to a smooth loading
> UX for graphics-dependent UIs:
>
> Any conscientiously integrated front end would surely use sprites for
> significantly better image data byte-size and a load-once-all-accounted-for
> approach … I believe this is a fairly well-established standard in front-end
> optimisation… At which point having said sprite loaded via a visually hidden
> image element near the top of the page and referenced as and when necessary in
> the CSS both ensures the image will be loaded before rendering and avoids
> bloated heavily-fringe-case-targetted CSS code — while happily leaving the
> image out of the resource-loading process if, by whatever means, the user
> agent is set not to load or display images.
>
> Quite apart from issues of flexibility and avoiding hard-to-maintain
> incredibly use-case specific code forking, not to mention heavy inference
> dependence, I struggle to imagine realistic use-case scenarios where this
> option is not massively lighter — with fall-back built in via more reliable
> traditional methods.
>
> As I say this, I'm sure I'm missing a trick — can someone point me to
> resources describing the case for base-64 encoding as a routine byte-saving
> procedure in more detail?
>
> Regards,
>
> Barney Carroll
> (+44) 742 9177 278
>
> On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...
> <mailto:luca.passani%40gmail.com>> wrote:
>
> >
> > On 7/15/2011 9:26 AM, Jordan Dobson wrote:
> >>
> >>
> >> Also I would say start with dumb phone styles first as the catch all and
> >> enhance as you go.
> >>
> >> I really recommend using Base64 encoded images in your CSS for UI elements
as
> >> much as possible. That way you ensure when your CSS is loaded and ready
that
> >> your images are as well. Nothing looks worse than seeing your app with no
> >> icons... and then they flash/trickle in.
> >>
> >
> > WURFL has a capability called 'image_inlining' that tracks the DATA URI
Scheme
> > (the Base64 trick you just mentioned).
> >
> > Basically, you can conditionally do stuff like:
> >
> > if (device.getCapability("image_inlining")) {
> > write( <img src="data:image/png Util.base64("my_pic.png")" ..>
> > } else {
> > write( <img src="my_pic.png" ..>
> > }
> >
> > this is being used successfully by a major social network provider to
enhance UX
> > on devices that support the feature.
> >
> > Luca
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>
>

#606 From: Jordan Dobson <jordandobson@...>
Date: Fri Jul 15, 2011 8:44 am
Subject: Re: Organizing css files for mobile site
jordanrdobson
Send Email Send Email
 
I have to admit... I never use sprites since nearly all my UI is CSS and if you are going Base64 encoded route It really doesn't mater.

I wouldn't say it saves bytes... I believe it actually bloats the size by 20% so it should be used sparingly. 

On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...> wrote:
 

As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:

Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.

Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.

As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?

Regards,

Barney Carroll
(+44) 742 9177 278



On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:

>
> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>
>>
>> Also I would say start with dumb phone styles first as the catch all and
>> enhance as you go.
>>
>> I really recommend using Base64 encoded images in your CSS for UI elements as
>> much as possible. That way you ensure when your CSS is loaded and ready that
>> your images are as well. Nothing looks worse than seeing your app with no
>> icons... and then they flash/trickle in.
>>
>
> WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
> (the Base64 trick you just mentioned).
>
> Basically, you can conditionally do stuff like:
>
> if (device.getCapability("image_inlining")) {
> write( <img src="data:image/png Util.base64("my_pic.png")" ..>
> } else {
> write( <img src="my_pic.png" ..>
> }
>
> this is being used successfully by a major social network provider to enhance UX
> on devices that support the feature.
>
> Luca
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>




--
Jordan Dobson  Designer / Developer  425-444-8014  JordanDobson.com

#607 From: "ulrich.steffens" <ulrich@...>
Date: Fri Jul 15, 2011 8:49 am
Subject: Re: Everything fonts
ulrich.steffens
Send Email Send Email
 
Since the client wants to sell something, the targeted browsers are pretty much
every mobile browser known to man...

But i guess, if we can target android/iOs, blackberry and nokia devices like the
n95 we're good to go.

Thanks again fo the heads-up!

--- In mobile-web@yahoogroups.com, Jordan Dobson <jordandobson@...> wrote:
>
> Also - You should use rem instead of em to make your life much simpler if
> your targeted browsers support it. I'm pretty sure most do.
>
> Otherwise Stefan is spot on.
>
> On Fri, Jul 15, 2011 at 1:14 AM, Stefan Hanke
> <pazifikwelle@...>wrote:
>
> > **
> >
> >
> > Hello Group, Hello Ulrich,
> >
> > It depends a bit on the targeted devices/range.
> > But nowadays I'd recommend to declare a font-size in the body(prefer
> > percentage) and then em everywhere.
> >
> > Regards
> > Stefan
> >
> > ***
> > Stefan Hanke
> > mail@... || pazifikwelle@...
> > +491724264228
> > This mail was sent using my Nexus Phone. I apologize for brevity and
> > misspellings.
> > ***
> > Am 15.07.2011 10:01 schrieb "ulrich.steffens" <ulrich@...>:
> >
> >
> >
>
>
>
> --
> Jordan Dobson • Designer / Developer • 425-444-8014 • JordanDobson.com
>

#608 From: Luca Passani <luca.passani@...>
Date: Fri Jul 15, 2011 8:50 am
Subject: Re: Organizing css files for mobile site
luca_passani
Send Email Send Email
 
the total size gets bigger, but the number of HTTP connections required drops
dramatically. And in mobile HTTP requests are very slow and expensive (and they
typically won't happen with the same level of concurrency as is normal with
fully-fledged web browsers)

in short, the perceived download time is a lot better with Data URI,
particularly when the network is not WiFi.

Luca

On 7/15/2011 10:44 AM, Jordan Dobson wrote:
>
>
> I have to admit... I never use sprites since nearly all my UI is CSS and if
> you are going Base64 encoded route It really doesn't mater.
>
>
> I wouldn't say it saves bytes... I believe it actually bloats the size by 20%
> so it should be used sparingly.
>
> On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...
> <mailto:barney.carroll@...>> wrote:
>
>
>
>     As regards inline encoding of images in situ with regards to a smooth
>     loading UX for graphics-dependent UIs:
>
>     Any conscientiously integrated front end would surely use sprites for
>     significantly better image data byte-size and a
>     load-once-all-accounted-for approach … I believe this is a fairly
>     well-established standard in front-end optimisation… At which point having
>     said sprite loaded via a visually hidden image element near the top of the
>     page and referenced as and when necessary in the CSS both ensures the
>     image will be loaded before rendering and avoids bloated
>     heavily-fringe-case-targetted CSS code — while happily leaving the image
>     out of the resource-loading process if, by whatever means, the user agent
>     is set not to load or display images.
>
>     Quite apart from issues of flexibility and avoiding hard-to-maintain
>     incredibly use-case specific code forking, not to mention heavy inference
>     dependence, I struggle to imagine realistic use-case scenarios where this
>     option is not massively lighter — with fall-back built in via more
>     reliable traditional methods.
>
>     As I say this, I'm sure I'm missing a trick — can someone point me to
>     resources describing the case for base-64 encoding as a routine
>     byte-saving procedure in more detail?
>
>     Regards,
>
>     Barney Carroll
>     (+44) 742 9177 278 <tel:%28%2B44%29%20742%209177%20278>
>
>

#609 From: James Pearce <jamesgpearce@...>
Date: Fri Jul 15, 2011 8:54 am
Subject: Re: Organizing css files for mobile site
kuriuskat2001
Send Email Send Email
 
Very roughly, base64-encoding adds a third to the data size, but on a cellular network, a disproportionate concern is latency. Avoiding any extra round trips is a good thing, and perhaps worth that extra size.

Purists might be concerned that you're adding hidden elements to your HTML to help support the needs of your CSS. But of course, you can inline the CSS, JS and images into one single HTML payload if you want to be extreme.

By the way, Sass, Compass etc make both base64 and multi-image spriting extremely easy. http://compass-style.org/help/tutorials/spriting/ - magic stuff.

The other cool thing about the data-uri approach is that you can, under app-control, store binary resources as strings in localStorage for offline usage (assuming you haven't been using the app cache anyway... a whole other discussion)

Turns out it's hard to generalize about performance. It depends. Probably.

James


On 15 July 2011 01:25, Barney Carroll <barney.carroll@...> wrote:
 

As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:

Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.

Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.

As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?

Regards,

Barney Carroll
(+44) 742 9177 278



On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:

>
> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>
>>
>> Also I would say start with dumb phone styles first as the catch all and
>> enhance as you go.
>>
>> I really recommend using Base64 encoded images in your CSS for UI elements as
>> much as possible. That way you ensure when your CSS is loaded and ready that
>> your images are as well. Nothing looks worse than seeing your app with no
>> icons... and then they flash/trickle in.
>>
>
> WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
> (the Base64 trick you just mentioned).
>
> Basically, you can conditionally do stuff like:
>
> if (device.getCapability("image_inlining")) {
> write( <img src="data:image/png Util.base64("my_pic.png")" ..>
> } else {
> write( <img src="my_pic.png" ..>
> }
>
> this is being used successfully by a major social network provider to enhance UX
> on devices that support the feature.
>
> Luca
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>



#610 From: Stephanie Rieger <steph@...>
Date: Fri Jul 15, 2011 9:03 am
Subject: Re: Organizing css files for mobile site [CSS sprites]
yiibu_steph
Send Email Send Email
 
My two cents worth regarding sprites specifically (...with more later in the day regarding CSS)

We used to use sprites a lot for mobile as we found the browser support was by and large quite good and it really did help eliminate uncomfortable moments and latency with rollovers, hover states etc when you need that few extra seconds for graphics to fetch and load.

The problem we're running into lately is that most of our layouts are now designed to be completely flexible. In other words, barring the pixel values required in the media query itself (...and until such time where em media queries start to make sense), we use no pixels in the style sheet at all. Properly positioning sprites in a layout that is entirely flexible (and on top of that 'responsive') is proving to be quite difficult as it often forces you to create larger sprites so that they can be used/revealed at a range of sizes. This can make them hard to manage and of course, larger.

So really, I would still encourage giving them a try, just make sure you test thoroughly to determine how likely they are to break in your particular context. Depending on where and how you're using them, they can be quite useful.

Steph

Yiibu: Lovingly crafted mobile experiences

+44 (0)7957 651 177
Twitter: stephanierieger

On 15 Jul 2011, at 09:44, Jordan Dobson wrote:

 

I have to admit... I never use sprites since nearly all my UI is CSS and if you are going Base64 encoded route It really doesn't mater.


I wouldn't say it saves bytes... I believe it actually bloats the size by 20% so it should be used sparingly. 

On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...> wrote:
 

As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:

Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.

Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.

As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?

Regards,

Barney Carroll
(+44) 742 9177 278



On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:

>
> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>
>>
>> Also I would say start with dumb phone styles first as the catch all and
>> enhance as you go.
>>
>> I really recommend using Base64 encoded images in your CSS for UI elements as
>> much as possible. That way you ensure when your CSS is loaded and ready that
>> your images are as well. Nothing looks worse than seeing your app with no
>> icons... and then they flash/trickle in.
>>
>
> WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
> (the Base64 trick you just mentioned).
>
> Basically, you can conditionally do stuff like:
>
> if (device.getCapability("image_inlining")) {
> write( <img src="data:image/png Util.base64("my_pic.png")" ..>
> } else {
> write( <img src="my_pic.png" ..>
> }
>
> this is being used successfully by a major social network provider to enhance UX
> on devices that support the feature.
>
> Luca
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>




--
Jordan Dobson  Designer / Developer  425-444-8014  JordanDobson.com



#611 From: Stefan Hanke <pazifikwelle@...>
Date: Fri Jul 15, 2011 9:04 am
Subject: Re: Re: Everything fonts
pazifikwelle@...
Send Email Send Email
 
@Ulrich be careful (test often) with EM on Blackberry (pre OS6) and old Nokias (I had some fun with them, some times ago) 

:-)  

2011/7/15 ulrich.steffens <ulrich@...>
 

Since the client wants to sell something, the targeted browsers are pretty much every mobile browser known to man...

But i guess, if we can target android/iOs, blackberry and nokia devices like the n95 we're good to go.

Thanks again fo the heads-up!



--- In mobile-web@yahoogroups.com, Jordan Dobson <jordandobson@...> wrote:
>
> Also - You should use rem instead of em to make your life much simpler if
> your targeted browsers support it. I'm pretty sure most do.
>
> Otherwise Stefan is spot on.
>
> On Fri, Jul 15, 2011 at 1:14 AM, Stefan Hanke
> <pazifikwelle@...>wrote:

>
> > **
> >
> >
> > Hello Group, Hello Ulrich,
> >
> > It depends a bit on the targeted devices/range.
> > But nowadays I'd recommend to declare a font-size in the body(prefer
> > percentage) and then em everywhere.
> >
> > Regards
> > Stefan
> >
> > ***
> > Stefan Hanke
> > mail@... || pazifikwelle@...

> > +491724264228
> > This mail was sent using my Nexus Phone. I apologize for brevity and
> > misspellings.
> > ***
> > Am 15.07.2011 10:01 schrieb "ulrich.steffens" <ulrich@...>:

> >
> >
> >
>
>
>
> --
> Jordan Dobson • Designer / Developer • 425-444-8014 • JordanDobson.com
>




--
***
Stefan Hanke
pazifikwelle@... 

skype: shanke24143 

mobile: +491724264228
tel: +493060968969
fax: +493060968968

***


#612 From: Barney Carroll <barney.carroll@...>
Date: Fri Jul 15, 2011 9:19 am
Subject: Re: Organizing css files for mobile site
barney.carroll@...
Send Email Send Email
 
Inline image encoding saves ~20% byte-size? That is pretty significant. Do you have any test cases to back this up?

My experience is that if you have several images, concatenating them into one file will save a large chunk of what I'll call instantiation metadata from being redefined. I can imagine that if you have one image, used once (say for a logo), inline encoding would be your best bet. For any other scenario, I'm still struggling to imagine genuine byte-saving via this method. Some test cases would definitely help — I may set some up.

Regards,

Barney Carroll
(+44) 742 9177 278

On 15 Jul 2011, at 09:44, Jordan Dobson <jordandobson@...> wrote:

 

I have to admit... I never use sprites since nearly all my UI is CSS and if you are going Base64 encoded route It really doesn't mater.


I wouldn't say it saves bytes... I believe it actually bloats the size by 20% so it should be used sparingly. 

On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...> wrote:
 

As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:

Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.

Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.

As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?

Regards,

Barney Carroll
(+44) 742 9177 278



On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:

>
> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>
>>
>> Also I would say start with dumb phone styles first as the catch all and
>> enhance as you go.
>>
>> I really recommend using Base64 encoded images in your CSS for UI elements as
>> much as possible. That way you ensure when your CSS is loaded and ready that
>> your images are as well. Nothing looks worse than seeing your app with no
>> icons... and then they flash/trickle in.
>>
>
> WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
> (the Base64 trick you just mentioned).
>
> Basically, you can conditionally do stuff like:
>
> if (device.getCapability("image_inlining")) {
> write( <img src="data:image/png Util.base64("my_pic.png")" ..>
> } else {
> write( <img src="my_pic.png" ..>
> }
>
> this is being used successfully by a major social network provider to enhance UX
> on devices that support the feature.
>
> Luca
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>




--
Jordan Dobson â€˘ Designer / Developer â€˘ 425-444-8014 â€˘ JordanDobson.com


#613 From: Jordan Dobson <jordandobson@...>
Date: Fri Jul 15, 2011 10:12 am
Subject: Re: Organizing css files for mobile site
jordanrdobson
Send Email Send Email
 


On Fri, Jul 15, 2011 at 2:19 AM, Barney Carroll <barney.carroll@...> wrote:
 

Inline image encoding saves ~20% byte-size? That is pretty significant. Do you have any test cases to back this up?

I think everyone said it bloats it by about 20%.. it can be less or more depending on the image.
 

My experience is that if you have several images, concatenating them into one file will save a large chunk of what I'll call instantiation metadata from being redefined. I can imagine that if you have one image, used once (say for a logo), inline encoding would be your best bet. For any other scenario, I'm still struggling to imagine genuine byte-saving via this method. Some test cases would definitely help — I may set some up.

This tends to be more about perception and less about saving bytes. 
 


Regards,

Barney Carroll
(+44) 742 9177 278

On 15 Jul 2011, at 09:44, Jordan Dobson <jordandobson@...> wrote:

 

I have to admit... I never use sprites since nearly all my UI is CSS and if you are going Base64 encoded route It really doesn't mater.


I wouldn't say it saves bytes... I believe it actually bloats the size by 20% so it should be used sparingly. 

On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...> wrote:
 

As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:

Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.

Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.

As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?

Regards,

Barney Carroll
(+44) 742 9177 278



On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:

>
> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>
>>
>> Also I would say start with dumb phone styles first as the catch all and
>> enhance as you go.
>>
>> I really recommend using Base64 encoded images in your CSS for UI elements as
>> much as possible. That way you ensure when your CSS is loaded and ready that
>> your images are as well. Nothing looks worse than seeing your app with no
>> icons... and then they flash/trickle in.
>>
>
> WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
> (the Base64 trick you just mentioned).
>
> Basically, you can conditionally do stuff like:
>
> if (device.getCapability("image_inlining")) {
> write( <img src="data:image/png Util.base64("my_pic.png")" ..>
> } else {
> write( <img src="my_pic.png" ..>
> }
>
> this is being used successfully by a major social network provider to enhance UX
> on devices that support the feature.
>
> Luca
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>




--
Jordan Dobson  Designer / Developer  425-444-8014  JordanDobson.com




--
Jordan Dobson  Designer / Developer  425-444-8014  JordanDobson.com

#614 From: Jordan Dobson <jordandobson@...>
Date: Fri Jul 15, 2011 10:15 am
Subject: Re: Organizing css files for mobile site
jordanrdobson
Send Email Send Email
 
Comments inline

On Fri, Jul 15, 2011 at 1:54 AM, James Pearce <jamesgpearce@...> wrote:
 

Very roughly, base64-encoding adds a third to the data size, but on a cellular network, a disproportionate concern is latency. Avoiding any extra round trips is a good thing, and perhaps worth that extra size.


Purists might be concerned that you're adding hidden elements to your HTML to help support the needs of your CSS. But of course, you can inline the CSS, JS and images into one single HTML payload if you want to be extreme.

Using Pseudo elements can usually keep your code pretty pure.
 

By the way, Sass, Compass etc make both base64 and multi-image spriting extremely easy. http://compass-style.org/help/tutorials/spriting/ - magic stuff.

The other cool thing about the data-uri approach is that you can, under app-control, store binary resources as strings in localStorage for offline usage (assuming you haven't been using the app cache anyway... a whole other discussion)

Yes this is awesome as well and I have been doing that to store poster images along with the content's meta data in local storage instead of hitting the server for 12 images at a time.
 

Turns out it's hard to generalize about performance. It depends. Probably.

James


On 15 July 2011 01:25, Barney Carroll <barney.carroll@...> wrote:
 

As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:

Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.

Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.

As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?

Regards,

Barney Carroll
(+44) 742 9177 278



On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:

>
> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>
>>
>> Also I would say start with dumb phone styles first as the catch all and
>> enhance as you go.
>>
>> I really recommend using Base64 encoded images in your CSS for UI elements as
>> much as possible. That way you ensure when your CSS is loaded and ready that
>> your images are as well. Nothing looks worse than seeing your app with no
>> icons... and then they flash/trickle in.
>>
>
> WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
> (the Base64 trick you just mentioned).
>
> Basically, you can conditionally do stuff like:
>
> if (device.getCapability("image_inlining")) {
> write( <img src="data:image/png Util.base64("my_pic.png")" ..>
> } else {
> write( <img src="my_pic.png" ..>
> }
>
> this is being used successfully by a major social network provider to enhance UX
> on devices that support the feature.
>
> Luca
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>





--
Jordan Dobson  Designer / Developer  425-444-8014  JordanDobson.com

#615 From: Jason Grigsby <jason@...>
Date: Fri Jul 15, 2011 4:13 pm
Subject: Re: Organizing css files for mobile site
jasonlgrigsby
Send Email Send Email
 
Bing, Google, and I’m pretty sure Yahoo all use inline images and assets on
their mobile sites in order to increase the speed of first page load.

Bing has the most advanced techniques in this regard putting everything
inline--one big 200k file for first page load--then stuffing assets in local
storage with version numbers on them.

A cookie is set declaring what versions of what assets are stored locally which
allows the server to figure out what assets it needs to send. This means
subsequent page loads are < 20k.

If the server receives a request with a cookie that indicates an outdated
version of an asset, the server then delivers builds a different page containing
that asset inline to replace the one stored locally.

If you’re interested in this stuff, I highly recommend following Steve Souders.
The Velocity conference covered a lot of mobile this year. And I saw Nicholas
Zakas speak at Web Directions Unplugged this year. He was part of Yahoo’s
performance team. His slides are here:
http://www.slideshare.net/nzakas/mobile-web-speed-bumps

-Jason

On Jul 15, 2011, at 2:19 AM, Barney Carroll wrote:

>
> Inline image encoding saves ~20% byte-size? That is pretty significant. Do you
have any test cases to back this up?
>
> My experience is that if you have several images, concatenating them into one
file will save a large chunk of what I'll call instantiation metadata from being
redefined. I can imagine that if you have one image, used once (say for a logo),
inline encoding would be your best bet. For any other scenario, I'm still
struggling to imagine genuine byte-saving via this method. Some test cases would
definitely help — I may set some up.
>
> Regards,
>
> Barney Carroll
> (+44) 742 9177 278
>
> On 15 Jul 2011, at 09:44, Jordan Dobson <jordandobson@...> wrote:
>
>>
>> I have to admit... I never use sprites since nearly all my UI is CSS and if
you are going Base64 encoded route It really doesn't mater.
>>
>>
>> I wouldn't say it saves bytes... I believe it actually bloats the size by 20%
so it should be used sparingly.
>>
>> On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...>
wrote:
>>
>> As regards inline encoding of images in situ with regards to a smooth loading
UX for graphics-dependent UIs:
>>
>> Any conscientiously integrated front end would surely use sprites for
significantly better image data byte-size and a load-once-all-accounted-for
approach … I believe this is a fairly well-established standard in front-end
optimisation… At which point having said sprite loaded via a visually hidden
image element near the top of the page and referenced as and when necessary in
the CSS both ensures the image will be loaded before rendering and avoids
bloated heavily-fringe-case-targetted CSS code — while happily leaving the image
out of the resource-loading process if, by whatever means, the user agent is set
not to load or display images.
>>
>> Quite apart from issues of flexibility and avoiding hard-to-maintain
incredibly use-case specific code forking, not to mention heavy inference
dependence, I struggle to imagine realistic use-case scenarios where this option
is not massively lighter — with fall-back built in via more reliable traditional
methods.
>>
>> As I say this, I'm sure I'm missing a trick — can someone point me to
resources describing the case for base-64 encoding as a routine byte-saving
procedure in more detail?
>>
>> Regards,
>>
>> Barney Carroll
>> (+44) 742 9177 278
>>
>>
>>
>> On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:
>>
>> >
>> > On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>> >>
>> >>
>> >> Also I would say start with dumb phone styles first as the catch all and
>> >> enhance as you go.
>> >>
>> >> I really recommend using Base64 encoded images in your CSS for UI elements
as
>> >> much as possible. That way you ensure when your CSS is loaded and ready
that
>> >> your images are as well. Nothing looks worse than seeing your app with no
>> >> icons... and then they flash/trickle in.
>> >>
>> >
>> > WURFL has a capability called 'image_inlining' that tracks the DATA URI
Scheme
>> > (the Base64 trick you just mentioned).
>> >
>> > Basically, you can conditionally do stuff like:
>> >
>> > if (device.getCapability("image_inlining")) {
>> > write( <img src="data:image/png Util.base64("my_pic.png")" ..>
>> > } else {
>> > write( <img src="my_pic.png" ..>
>> > }
>> >
>> > this is being used successfully by a major social network provider to
enhance UX
>> > on devices that support the feature.
>> >
>> > Luca
>> >
>> >
>> >
>> > ------------------------------------
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>>
>>
>>
>>
>> --
>> Jordan Dobson • Designer / Developer • 425-444-8014 • JordanDobson.com
>>
>
>

--

Jason Grigsby
+1 (503) 290-1090 o
+1 (503) 502-7211 m
jason@...
http://cloudfour.com

#616 From: Peter Cranstone <peter.cranstone@...>
Date: Fri Jul 15, 2011 4:28 pm
Subject: Re: Organizing css files for mobile site
cranstone001
Send Email Send Email
 
All,

We have a free tool for measuring Mobile HTTP performance on Android (integrates both your current GPS location and your Carrier network) - you can get it here: www.3pmobile.com

And for those super techies… In the next rev (August) we’re adding a “View Source” option. Essentially this will allow you to see exactly how Yahoo’s Mobile home page (or anyone else’s for that matter) is constructed.


Peter
__________________________________
Peter J. Cranstone
M: 720.663.1752
5o9, Inc.
CEO



Web Tools for Mobile

On Jul 15, 2011, at 10:13 AM, Jason Grigsby wrote:

Bing, Google, and I’m pretty sure Yahoo all use inline images and assets on their mobile sites in order to increase the speed of first page load.

Bing has the most advanced techniques in this regard putting everything inline--one big 200k file for first page load--then stuffing assets in local storage with version numbers on them.

A cookie is set declaring what versions of what assets are stored locally which allows the server to figure out what assets it needs to send. This means subsequent page loads are < 20k.

If the server receives a request with a cookie that indicates an outdated version of an asset, the server then delivers builds a different page containing that asset inline to replace the one stored locally.

If you’re interested in this stuff, I highly recommend following Steve Souders. The Velocity conference covered a lot of mobile this year. And I saw Nicholas Zakas speak at Web Directions Unplugged this year. He was part of Yahoo’s performance team. His slides are here:
http://www.slideshare.net/nzakas/mobile-web-speed-bumps

-Jason

On Jul 15, 2011, at 2:19 AM, Barney Carroll wrote:


Inline image encoding saves ~20% byte-size? That is pretty significant. Do you have any test cases to back this up?

My experience is that if you have several images, concatenating them into one file will save a large chunk of what I'll call instantiation metadata from being redefined. I can imagine that if you have one image, used once (say for a logo), inline encoding would be your best bet. For any other scenario, I'm still struggling to imagine genuine byte-saving via this method. Some test cases would definitely help — I may set some up.

Regards,

Barney Carroll
(+44) 742 9177 278

On 15 Jul 2011, at 09:44, Jordan Dobson <jordandobson@...> wrote:


I have to admit... I never use sprites since nearly all my UI is CSS and if you are going Base64 encoded route It really doesn't mater.


I wouldn't say it saves bytes... I believe it actually bloats the size by 20% so it should be used sparingly.

On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...> wrote:

As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:

Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.

Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.

As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?

Regards,

Barney Carroll
(+44) 742 9177 278



On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:


On 7/15/2011 9:26 AM, Jordan Dobson wrote:


Also I would say start with dumb phone styles first as the catch all and
enhance as you go.

I really recommend using Base64 encoded images in your CSS for UI elements as
much as possible. That way you ensure when your CSS is loaded and ready that
your images are as well. Nothing looks worse than seeing your app with no
icons... and then they flash/trickle in.


WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
(the Base64 trick you just mentioned).

Basically, you can conditionally do stuff like:

if (device.getCapability("image_inlining")) {
write( <img src="data:image/png Util.base64("my_pic.png")" ..>
} else {
write( <img src="my_pic.png" ..>
}

this is being used successfully by a major social network provider to enhance UX
on devices that support the feature.

Luca



------------------------------------

Yahoo! Groups Links







--
Jordan Dobson • Designer / Developer • 425-444-8014 • JordanDobson.com




--

Jason Grigsby
+1 (503) 290-1090 o
+1 (503) 502-7211 m
jason@...
http://cloudfour.com





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/mobile-web/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/mobile-web/join
   (Yahoo! ID required)

<*> To change settings via email:
   mobile-web-digest@yahoogroups.com
   mobile-web-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   mobile-web-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/



#617 From: Tim Kadlec <tim@...>
Date: Fri Jul 15, 2011 4:39 pm
Subject: Re: Organizing css files for mobile site
timkadlec
Send Email Send Email
 
For some more detailed information on the technique Bing uses, check out this talk by James Mickens from MIX (http://channel9.msdn.com/events/MIX/MIX11/RES04) as well as the related paper (http://research.microsoft.com/apps/pubs/default.aspx?id=131524).

Also - to go back to Barney's comment about byte-saving - inlining images certainly won't save you any bytes. But as James mentioned, on mobile, latency is a huge concern. The only stats I have on just how bad the situation is comes from YUI's study from April of 2010 (http://www.yuiblog.com/blog/2010/04/08/analyzing-bandwidth-and-latency/). Average mobile latency was nearly three times the amount of latency found on a cable connection. That's a very serious hit and re-emphasizes just how important it is to reduce requests on mobile networks.

-- 
Take care,
Tim

---------------------------------------------


On Fri, Jul 15, 2011 at 11:13 AM, Jason Grigsby <jason@...> wrote:
Bing, Google, and I’m pretty sure Yahoo all use inline images and assets on their mobile sites in order to increase the speed of first page load.

Bing has the most advanced techniques in this regard putting everything inline--one big 200k file for first page load--then stuffing assets in local storage with version numbers on them.

A cookie is set declaring what versions of what assets are stored locally which allows the server to figure out what assets it needs to send. This means subsequent page loads are < 20k.

If the server receives a request with a cookie that indicates an outdated version of an asset, the server then delivers builds a different page containing that asset inline to replace the one stored locally.

If you’re interested in this stuff, I highly recommend following Steve Souders. The Velocity conference covered a lot of mobile this year. And I saw Nicholas Zakas speak at Web Directions Unplugged this year. He was part of Yahoo’s performance team. His slides are here:
http://www.slideshare.net/nzakas/mobile-web-speed-bumps

-Jason

On Jul 15, 2011, at 2:19 AM, Barney Carroll wrote:

>
> Inline image encoding saves ~20% byte-size? That is pretty significant. Do you have any test cases to back this up?
>
> My experience is that if you have several images, concatenating them into one file will save a large chunk of what I'll call instantiation metadata from being redefined. I can imagine that if you have one image, used once (say for a logo), inline encoding would be your best bet. For any other scenario, I'm still struggling to imagine genuine byte-saving via this method. Some test cases would definitely help — I may set some up.
>
> Regards,
>
> Barney Carroll
> (+44) 742 9177 278
>
> On 15 Jul 2011, at 09:44, Jordan Dobson <jordandobson@...> wrote:
>
>>
>> I have to admit... I never use sprites since nearly all my UI is CSS and if you are going Base64 encoded route It really doesn't mater.
>>
>>
>> I wouldn't say it saves bytes... I believe it actually bloats the size by 20% so it should be used sparingly.
>>
>> On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...> wrote:
>>
>> As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:
>>
>> Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.
>>
>> Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.
>>
>> As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?
>>
>> Regards,
>>
>> Barney Carroll
>> (+44) 742 9177 278
>>
>>
>>
>> On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:
>>
>> >
>> > On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>> >>
>> >>
>> >> Also I would say start with dumb phone styles first as the catch all and
>> >> enhance as you go.
>> >>
>> >> I really recommend using Base64 encoded images in your CSS for UI elements as
>> >> much as possible. That way you ensure when your CSS is loaded and ready that
>> >> your images are as well. Nothing looks worse than seeing your app with no
>> >> icons... and then they flash/trickle in.
>> >>
>> >
>> > WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
>> > (the Base64 trick you just mentioned).
>> >
>> > Basically, you can conditionally do stuff like:
>> >
>> > if (device.getCapability("image_inlining")) {
>> > write( <img src="data:image/png Util.base64("my_pic.png")" ..>
>> > } else {
>> > write( <img src="my_pic.png" ..>
>> > }
>> >
>> > this is being used successfully by a major social network provider to enhance UX
>> > on devices that support the feature.
>> >
>> > Luca
>> >
>> >
>> >
>> > ------------------------------------
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>>
>>
>>
>>
>> --
>> Jordan Dobson • Designer / Developer • 425-444-8014 • JordanDobson.com
>>
>
>

--

Jason Grigsby
+1 (503) 290-1090 o
+1 (503) 502-7211 m
jason@...
http://cloudfour.com





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/mobile-web/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/mobile-web/join
   (Yahoo! ID required)

<*> To change settings via email:
   mobile-web-digest@yahoogroups.com
   mobile-web-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   mobile-web-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/





#618 From: "bartekszopka" <bartek.szopka@...>
Date: Mon Jul 18, 2011 10:45 am
Subject: NetFront 3.3 or 3.5 Browser Emulator
bartekszopka
Send Email Send Email
 
Hi,

Does anyone have an emulator for NetFront browser pre 4? Ideally versions 3.3 or
3.5 that were shipped with many Sony Ericsson phones.

ACCESS website only allows to download latest version of NetFront for Windows
Mobile.

I guess emulators for older versions were available there too, but were removed
some time ago. Maybe, by any chance, someone here has downloaded them or knows
if they've been mirrored somewhere?

Cheers,
Bartek

#619 From: "bharathkumar2007" <bharath@...>
Date: Mon Jul 18, 2011 11:01 am
Subject: How to handle Font Size in devices with Various Resolution
bharathkumar...
Send Email Send Email
 
Hi Friends,

I am developing a Mobile Web Application and I am new to this.

I am aware of that we need to create a fluid layout to match different mobile
screen sizes and resolutions.

How to handle font size for various resolutions like a devices with a resolution
of 240x 320, 320x 480, 480 x 800 and 768x104(IPAD).

I am just using predefined html tags like Header tags(h1 to h6) to display font.
I am not using font tag's size attribute.

Also I am using few images for icons, buttons will these have an impact, if so
how to handles this?.

Am I on right track...?  Please guide me.

Thanks,
- Bharath

#620 From: Stephanie Rieger <steph@...>
Date: Fri Jul 15, 2011 9:10 am
Subject: Re: Everything fonts
yiibu_steph
Send Email Send Email
 
Hi Ulrich,
We would recommend ems vs px. Ems can be used quite reliably but also provide an added advantage on older devices. Many older devices (pre-touch and pinch-to-zoom) enabled users to zoom the UI using zoom buttons and/or enabled them to enlarge their fonts. When fonts were set in pixel values, these mechanisms often didn't work, or worked inconsistently e.g. the UI might scale, but not the fonts.

In general, if you reset your font size to 1em in the body, then use larger (and occasionally smaller) ems to specify your specific sub-styles, it works just fine. A few browsers may need some extra adjustment (early Nokia touch browsers for example had a very small default font that remains a bit too small, even after a reset) but by and large, a 1em value is an excellent and legible starting point on most devices.

Steph

Yiibu: Lovingly crafted mobile experiences

+44 (0)7957 651 177
Twitter: stephanierieger

On 15 Jul 2011, at 09:00, ulrich.steffens wrote:

 

Hello group,

I'm in the process of creating a mobile site for a client and i was wondering what best pratices exist and you would recommend declaring fonts in css?
I'm thinking of em vs. px, etc...

Any hint is *greatly* appreciated!

Thanks.

Ulrich



#621 From: Barney Carroll <barney.carroll@...>
Date: Fri Jul 15, 2011 4:42 pm
Subject: Re: Organizing css files for mobile site
barney.carroll@...
Send Email Send Email
 
Jason,

Thanks a lot for the technical explanation and examples: the missing pieces of
the puzzle were local storage for dynamic resource definition and cookies for
flagging outdated components to the server-side logic. That certainly explains
how a cleverly conceived web app could be safely extensible with an all-at-once
overhead and internal logic to define re-use. Just to be clear, this is a mobile
webkit only web app we are talking about here, right? I still can't imagine the
data-URI includes making sense in the vast majority of scenarios for anything
without the local storage API…

In the meantime, I'll be digging into Bing. Out of interest, how did you come
about the Bing analysis? Will UA string spoofing allow me to use, say Chrome dev
tools to peer at the innards of the mechanisms you're describing, or would that
leave me looking at something else?


Regards,

Barney Carroll
(+44) 742 9177 278

On 15 Jul 2011, at 17:13, Jason Grigsby <jason@...> wrote:

> Bing, Google, and I’m pretty sure Yahoo all use inline images and assets on
their mobile sites in order to increase the speed of first page load.
>
> Bing has the most advanced techniques in this regard putting everything
inline--one big 200k file for first page load--then stuffing assets in local
storage with version numbers on them.
>
> A cookie is set declaring what versions of what assets are stored locally
which allows the server to figure out what assets it needs to send. This means
subsequent page loads are < 20k.
>
> If the server receives a request with a cookie that indicates an outdated
version of an asset, the server then delivers builds a different page containing
that asset inline to replace the one stored locally.
>
> If you’re interested in this stuff, I highly recommend following Steve
Souders. The Velocity conference covered a lot of mobile this year. And I saw
Nicholas Zakas speak at Web Directions Unplugged this year. He was part of
Yahoo’s performance team. His slides are here:
> http://www.slideshare.net/nzakas/mobile-web-speed-bumps
>
> -Jason
>
> On Jul 15, 2011, at 2:19 AM, Barney Carroll wrote:
>
>>
>> Inline image encoding saves ~20% byte-size? That is pretty significant. Do
you have any test cases to back this up?
>>
>> My experience is that if you have several images, concatenating them into one
file will save a large chunk of what I'll call instantiation metadata from being
redefined. I can imagine that if you have one image, used once (say for a logo),
inline encoding would be your best bet. For any other scenario, I'm still
struggling to imagine genuine byte-saving via this method. Some test cases would
definitely help — I may set some up.
>>
>> Regards,
>>
>> Barney Carroll
>> (+44) 742 9177 278
>>
>> On 15 Jul 2011, at 09:44, Jordan Dobson <jordandobson@...> wrote:
>>
>>>
>>> I have to admit... I never use sprites since nearly all my UI is CSS and if
you are going Base64 encoded route It really doesn't mater.
>>>
>>>
>>> I wouldn't say it saves bytes... I believe it actually bloats the size by
20% so it should be used sparingly.
>>>
>>> On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...>
wrote:
>>>
>>> As regards inline encoding of images in situ with regards to a smooth
loading UX for graphics-dependent UIs:
>>>
>>> Any conscientiously integrated front end would surely use sprites for
significantly better image data byte-size and a load-once-all-accounted-for
approach … I believe this is a fairly well-established standard in front-end
optimisation… At which point having said sprite loaded via a visually hidden
image element near the top of the page and referenced as and when necessary in
the CSS both ensures the image will be loaded before rendering and avoids
bloated heavily-fringe-case-targetted CSS code — while happily leaving the
image out of the resource-loading process if, by whatever means, the user agent
is set not to load or display images.
>>>
>>> Quite apart from issues of flexibility and avoiding hard-to-maintain
incredibly use-case specific code forking, not to mention heavy inference
dependence, I struggle to imagine realistic use-case scenarios where this option
is not massively lighter — with fall-back built in via more reliable
traditional methods.
>>>
>>> As I say this, I'm sure I'm missing a trick — can someone point me to
resources describing the case for base-64 encoding as a routine byte-saving
procedure in more detail?
>>>
>>> Regards,
>>>
>>> Barney Carroll
>>> (+44) 742 9177 278
>>>
>>>
>>>
>>> On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:
>>>
>>>>
>>>> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>>>>
>>>>>
>>>>> Also I would say start with dumb phone styles first as the catch all and
>>>>> enhance as you go.
>>>>>
>>>>> I really recommend using Base64 encoded images in your CSS for UI elements
as
>>>>> much as possible. That way you ensure when your CSS is loaded and ready
that
>>>>> your images are as well. Nothing looks worse than seeing your app with no
>>>>> icons... and then they flash/trickle in.
>>>>>
>>>>
>>>> WURFL has a capability called 'image_inlining' that tracks the DATA URI
Scheme
>>>> (the Base64 trick you just mentioned).
>>>>
>>>> Basically, you can conditionally do stuff like:
>>>>
>>>> if (device.getCapability("image_inlining")) {
>>>> write( <img src="data:image/png Util.base64("my_pic.png")" ..>
>>>> } else {
>>>> write( <img src="my_pic.png" ..>
>>>> }
>>>>
>>>> this is being used successfully by a major social network provider to
enhance UX
>>>> on devices that support the feature.
>>>>
>>>> Luca
>>>>
>>>>
>>>>
>>>> ------------------------------------
>>>>
>>>> Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Jordan Dobson • Designer / Developer • 425-444-8014 • JordanDobson.com
>>>
>>
>>
>
> --
>
> Jason Grigsby
> +1 (503) 290-1090 o
> +1 (503) 502-7211 m
> jason@...
> http://cloudfour.com
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#622 From: James Pearce <jamesgpearce@...>
Date: Tue Jul 19, 2011 12:19 am
Subject: Re: Organizing css files for mobile site
kuriuskat2001
Send Email Send Email
 
Best to use Weinre to peer into data stores on an actual device, I'd say.


Remy Sharp does an interesting teardown of Gmail mobile within http://www.slideshare.net/remy.sharp/developing-for-mobile

Finally, my own take on taking apps, data assets and images offline: http://www.sencha.com/learn/taking-sencha-touch-apps-offline (NB these principles are not Sencha Touch specific) 

JP


On 15 July 2011 09:42, Barney Carroll <barney.carroll@...> wrote:
 

Jason,

Thanks a lot for the technical explanation and examples: the missing pieces of the puzzle were local storage for dynamic resource definition and cookies for flagging outdated components to the server-side logic. That certainly explains how a cleverly conceived web app could be safely extensible with an all-at-once overhead and internal logic to define re-use. Just to be clear, this is a mobile webkit only web app we are talking about here, right? I still can't imagine the data-URI includes making sense in the vast majority of scenarios for anything without the local storage API…

In the meantime, I'll be digging into Bing. Out of interest, how did you come about the Bing analysis? Will UA string spoofing allow me to use, say Chrome dev tools to peer at the innards of the mechanisms you're describing, or would that leave me looking at something else?



Regards,

Barney Carroll
(+44) 742 9177 278

On 15 Jul 2011, at 17:13, Jason Grigsby <jason@...> wrote:

> Bing, Google, and I’m pretty sure Yahoo all use inline images and assets on their mobile sites in order to increase the speed of first page load.
>
> Bing has the most advanced techniques in this regard putting everything inline--one big 200k file for first page load--then stuffing assets in local storage with version numbers on them.
>
> A cookie is set declaring what versions of what assets are stored locally which allows the server to figure out what assets it needs to send. This means subsequent page loads are < 20k.
>
> If the server receives a request with a cookie that indicates an outdated version of an asset, the server then delivers builds a different page containing that asset inline to replace the one stored locally.
>
> If you’re interested in this stuff, I highly recommend following Steve Souders. The Velocity conference covered a lot of mobile this year. And I saw Nicholas Zakas speak at Web Directions Unplugged this year. He was part of Yahoo’s performance team. His slides are here:
> http://www.slideshare.net/nzakas/mobile-web-speed-bumps
>
> -Jason
>
> On Jul 15, 2011, at 2:19 AM, Barney Carroll wrote:
>
>>
>> Inline image encoding saves ~20% byte-size? That is pretty significant. Do you have any test cases to back this up?
>>
>> My experience is that if you have several images, concatenating them into one file will save a large chunk of what I'll call instantiation metadata from being redefined. I can imagine that if you have one image, used once (say for a logo), inline encoding would be your best bet. For any other scenario, I'm still struggling to imagine genuine byte-saving via this method. Some test cases would definitely help — I may set some up.
>>
>> Regards,
>>
>> Barney Carroll
>> (+44) 742 9177 278
>>
>> On 15 Jul 2011, at 09:44, Jordan Dobson <jordandobson@...> wrote:
>>
>>>
>>> I have to admit... I never use sprites since nearly all my UI is CSS and if you are going Base64 encoded route It really doesn't mater.
>>>
>>>
>>> I wouldn't say it saves bytes... I believe it actually bloats the size by 20% so it should be used sparingly.
>>>
>>> On Fri, Jul 15, 2011 at 1:25 AM, Barney Carroll <barney.carroll@...> wrote:
>>>
>>> As regards inline encoding of images in situ with regards to a smooth loading UX for graphics-dependent UIs:
>>>
>>> Any conscientiously integrated front end would surely use sprites for significantly better image data byte-size and a load-once-all-accounted-for approach … I believe this is a fairly well-established standard in front-end optimisation… At which point having said sprite loaded via a visually hidden image element near the top of the page and referenced as and when necessary in the CSS both ensures the image will be loaded before rendering and avoids bloated heavily-fringe-case-targetted CSS code — while happily leaving the image out of the resource-loading process if, by whatever means, the user agent is set not to load or display images.
>>>
>>> Quite apart from issues of flexibility and avoiding hard-to-maintain incredibly use-case specific code forking, not to mention heavy inference dependence, I struggle to imagine realistic use-case scenarios where this option is not massively lighter — with fall-back built in via more reliable traditional methods.
>>>
>>> As I say this, I'm sure I'm missing a trick — can someone point me to resources describing the case for base-64 encoding as a routine byte-saving procedure in more detail?
>>>
>>> Regards,
>>>
>>> Barney Carroll
>>> (+44) 742 9177 278
>>>
>>>
>>>
>>> On 15 Jul 2011, at 08:48, Luca Passani <luca.passani@...> wrote:
>>>
>>>>
>>>> On 7/15/2011 9:26 AM, Jordan Dobson wrote:
>>>>>
>>>>>
>>>>> Also I would say start with dumb phone styles first as the catch all and
>>>>> enhance as you go.
>>>>>
>>>>> I really recommend using Base64 encoded images in your CSS for UI elements as
>>>>> much as possible. That way you ensure when your CSS is loaded and ready that
>>>>> your images are as well. Nothing looks worse than seeing your app with no
>>>>> icons... and then they flash/trickle in.
>>>>>
>>>>
>>>> WURFL has a capability called 'image_inlining' that tracks the DATA URI Scheme
>>>> (the Base64 trick you just mentioned).
>>>>
>>>> Basically, you can conditionally do stuff like:
>>>>
>>>> if (device.getCapability("image_inlining")) {
>>>> write( <img src="data:image/png Util.base64("my_pic.png")" ..>
>>>> } else {
>>>> write( <img src="my_pic.png" ..>
>>>> }
>>>>
>>>> this is being used successfully by a major social network provider to enhance UX
>>>> on devices that support the feature.
>>>>
>>>> Luca
>>>>
>>>>
>>>>
>>>> ------------------------------------
>>>>
>>>> Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Jordan Dobson • Designer / Developer • 425-444-8014 • JordanDobson.com
>>>
>>
>>
>
> --
>
> Jason Grigsby
> +1 (503) 290-1090 o
> +1 (503) 502-7211 m
> jason@...
> http://cloudfour.com
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>



#623 From: Jason Grigsby <jason@...>
Date: Tue Jul 19, 2011 1:56 am
Subject: Re: Organizing css files for mobile site
jasonlgrigsby
Send Email Send Email
 
To be clear, I didn’t conduct the Bing research. Just pointing out what others
have found.

Google and Yahoo are using data URI without storage in order to reduce the
number of http connections for the reasons mentioned earlier. The slight
increase in file size from the data URI doesn’t equal the amount of time saved
from reducing the http requests.

One other thing to consider is optimization for first page load which is a lot
of what Google and the others plan for. They may ultimately decide to have
resources inline so they load quickly and then in the background download
duplicate assets. The first page load is fast and the subsequent ones are fast
because the content is cached.

All of these things are just tools. There are a lot of tweaking that can be done
to gain the best performance possible, but the only way to know what will make a
difference is to have a specific use case and see what you need to speed up.

-Jason

On Jul 15, 2011, at 9:42 AM, Barney Carroll wrote:

> Jason,
>
> Thanks a lot for the technical explanation and examples: the missing pieces of
the puzzle were local storage for dynamic resource definition and cookies for
flagging outdated components to the server-side logic. That certainly explains
how a cleverly conceived web app could be safely extensible with an all-at-once
overhead and internal logic to define re-use. Just to be clear, this is a mobile
webkit only web app we are talking about here, right? I still can't imagine the
data-URI includes making sense in the vast majority of scenarios for anything
without the local storage API…
>
> In the meantime, I'll be digging into Bing. Out of interest, how did you come
about the Bing analysis? Will UA string spoofing allow me to use, say Chrome dev
tools to peer at the innards of the mechanisms you're describing, or would that
leave me looking at something else?
>
> Regards,
>
> Barney Carroll
> (+44) 742 9177 278
>

#624 From: Caleb Wong <carbon.caleb@...>
Date: Thu Jul 14, 2011 8:02 am
Subject: Organizing css files for mobile site
ca1ebo
Send Email Send Email
 
Hello,

I'm currently working on creating styles on a mobile specific site, the site will be mainly supporting smart phones such as iphone & android, everything else like Windows7, Nokia N series only require basic support.

I've implemented some modern browser supported css features to style such as text-shadow, border-radius, gradient background etc.

The dilemma i'm having is how to organize my styles. Things I need to consider are:
- media queries used to target landscape & portrait mode on iphone.
- retina display for iphone 4.
- base style to support windows7 that runs IE7.

So the question is what's the best way to future proof for maintainability? Any example structure? 
Should I have a seperate css file for browsers that support css3?
Should I have a seperate css file for browsers that support retina display?

Keep in mind that I'll be able to combine and minify my css files into one on production environment...

Any advice is most appreciated :)

Caleb

#625 From: "gentle_media" <ralph@...>
Date: Tue Jul 26, 2011 12:42 pm
Subject: Opera Mobile converting automatically set of numbers to a (tel)link
gentle_media
Send Email Send Email
 
Hi everybody,

I'm new here and new to optimizing websites for mobile.

I have the Opera Mobile emulator installed to check my progress in that browser
and I've noticed that Opera Mobile automatically converts set of numbers into a
link. It thinks that it is a telephone number while it's not.

Is there a way to stop Opera Mobile from doing that to every set of numbers
except of course when it's a telephone number.
<a href="tel:00301234567890">+30-1234567890</a>

#626 From: Luca Passani <luca.passani@...>
Date: Tue Jul 26, 2011 12:53 pm
Subject: Re: Opera Mobile converting automatically set of numbers to a (tel)link
luca_passani
Send Email Send Email
 
On 7/26/2011 2:42 PM, gentle_media wrote:
>
>
> Hi everybody,
>
> I'm new here and new to optimizing websites for mobile.
>
> I have the Opera Mobile emulator installed to check my progress in that
> browser and I've noticed that Opera Mobile automatically converts set of
> numbers into a link. It thinks that it is a telephone number while it's not.
>
> Is there a way to stop Opera Mobile from doing that to every set of numbers
> except of course when it's a telephone number.
> <a href="tel:00301234567890">+30-1234567890</a>
>

Not sure whether this helps, but with the iphone you fix the problem with:

<meta name="format-detection" content="telephone=no">

on RIM

<meta http-equiv="x-rim-auto-match" content="none" />

Luca

#627 From: Trygve Lie <post@...>
Date: Tue Jul 26, 2011 12:55 pm
Subject: Re: Opera Mobile converting automatically set of numbers to a (tel)link
trygvelie
Send Email Send Email
 
Hi

Opera Mobile does this. It does in a way "assume" that number with 5
numbers in it or more are telephone numbers.

A test case can be seen here:
http://files.trygve-lie.com/tests/css_mobile_extra_a/

As fare as I know there are no way to prevent this. If it is I would
love to know it also...

I've already reported a bug on it at Opera. It has the bug number:
ANDMEX-1291

I do not know if the bug is closed or not since Operas bug tracker are
closed but the response I've got from Opera are that its a "unfortunate
side-effect": https://twitter.com/#!/divya/status/85708856746983424

I find this quite annoying and I would much rather have a way to set
something as a phone number instead of having the browser trying to
"assume" and actually injecting DOM elements I never asked for.

Trygve



On Tue, 2011-07-26 at 12:42 +0000, gentle_media wrote:
> Hi everybody,
>
> I'm new here and new to optimizing websites for mobile.
>
> I have the Opera Mobile emulator installed to check my progress in that
browser and I've noticed that Opera Mobile automatically converts set of numbers
into a link. It thinks that it is a telephone number while it's not.
>
> Is there a way to stop Opera Mobile from doing that to every set of numbers
except of course when it's a telephone number.
> <a href="tel:00301234567890">+30-1234567890</a>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

#628 From: Trygve Lie <post@...>
Date: Tue Jul 26, 2011 1:01 pm
Subject: Re: Opera Mobile converting automatically set of numbers to a (tel)link
trygvelie
Send Email Send Email
 
> <meta name="format-detection" content="telephone=no">
>
> on RIM
>
> <meta http-equiv="x-rim-auto-match" content="none" />


None of these meta tags fixes the problem in Opera:
http://files.trygve-lie.com/tests/css_mobile_extra_a/fix.html

Trygve

Messages 599 - 628 of 881   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help