The mysteries of mobile data plans or It’s all about Page Weight

So I have to make a confession (seems like I’ve been doing that a lot recently…) For the first time in my life I received a mobile phone bill with data charges on it. What you say? Are you some sort of imposter? Have you not been using mobile data all these years? Well, here’s the thing: I’ve been using it for free (we’ll, it’s all been on the company’s dime that is) so it never really hit me how much it really cost.

I’m an AT&T customer here in the states (out of convenience sake). My mobile and data bill are still on the company tab, but the Mrs. has recently started using her device as a data modem. There have been all sorts of stories about crazy mad data charges such as this gem from The Register Man uses mobe as modem, rings up £27k phone bill but I never though it could happen to me (famous last words). Fortunately my wife is neither a YouTube addict nor a P2P junkie, and was just accessing her email from a work site that did not provide her with a data connection. I figured how bad could it be… We had an extra $16 tacked on to our bill this past month. Ok, not so bad, but then I looked at the amount of data we actually used: 1.6 MB. So they’re charging $.01/kb. I’m sure to the average Joe, that number sounds pretty cheap. Heck, I’m only going to browse around every now and again, so at a penny a k, no big whoop. Does anyone really pay attention to the size of the pages they download (in kb that is)? I’d think not.

In light of the fact that the operators are pushing ‘open web browsing’ it’s worth looking at the sizes of pages out there in the wild. A 1200 word blog entry on the c|net news.com site weighs in at 457k. On my current data plan, just viewing that one page would cost me nearly $5. Suddenly those transcoding proxies don’t sound so evil anymore. Now before I piss off the folks around the corner from me here in San Francisco, let me add that there is also a mobile specific version of this very same page delivered from m.cnet.com which comes in at a total weight of 87k (of which 76k are images). Still, I’m looking at nearly a buck to read that story. For that I could have gone out and downloaded the latest track from Katy Perry… Actually it’s just one of the images that’s the offender weighing in at a whopping 67k. Now come on, that’s my money for the candy machine, and I’d much rather have that Twix than higher resolution screen shot of an Android phone. Compressing images for the purpose of delivery via the web (mobile or otherwise) is certainly nothing new. Using the out of the box tools from any one of the major image editing tools vendors (Adobe included… ? ) will easily crunch that image down to something on the order of 9k and without loss that would make any difference.

What else can you do to lighten the load (and the bill) on your end users? Well, think about the CSS that you’re delivering. While true that inline style may be more efficient from a performance perspective, it’s clearly less manageable than external style sheets and results in redundant code and bloat. Even when you move to external, linked style sheets, make sure that you prune out the styles that are not going to be used by your pages or are relevant only to the desktop version of your site. Along those same lines, be sure to leverage the inheritance properties of CSS rather than re-defining properties that could have just as easily been inherited or grouped. Specifically code like

Can be more efficiently delivered as

Sure, maybe you’re only saving a couple of lines here, but if you spread this thinking across all of your pages, it starts making sense. Also, remember to set the cache-control on your style sheets so that they live on locally and therefore can be leveraged across your entire site, thus further reducing the tax on each page.

Sure, flat rate data is all the rage these days, but assuming that it’s in place for all of your users could be costly for them, and as a result, costly for you in the long run. I’m not advocating anything new here, as these concepts are covered in sections 4.2.3 and 4.2.4 of the Switch On! Guide, but I do think that they’re worth reiterating and it’s always good to think about the cost to the end user of your service. While I can pretty much guarantee that no individual end user is going to pour back over their browsing history to find the bloated sites that plumped up their data bill, they’re much more likely to stop browsing all together, so not only do you lose a user, you could be poisoning the punch for everyone out there…

Exclusive tips, how-tos, news and comment

Receive monthly updates on the world of mobile dev.

Other Products

Market leading device intelligence for the web, app and MNO ecosystems
DeviceAtlas - Device Intelligence

Real-time identification of fraudulent and misrepresented traffic
DeviceAssure - Device Verification

A free tool for developers, designers and marketers to test website performance
mobiReady - Evaluate your websites’ mobile readiness

© 2024 DeviceAtlas Limited. All rights reserved.

This is a website of DeviceAtlas Limited, a private company limited by shares, incorporated and registered in the Republic of Ireland with registered number 398040 and registered office at 6th Floor, 2 Grand Canal Square, Dublin 2, Ireland