Fixit – Page size limit

This test determines how large your page is. There are two contributing factors to the outcome of this test:

  • the size of the page markup itself, and
  • the total size including markup plus all external stylesheets, images, objects and any other resources that might be referenced by your document.

Page size limits

Following the W3C mobile web best practices, the size of the page markup should not be greater than 10kB, and the total page size including all resources should not be greater than 20kB

If you received an error message similar to the one below:

 FAIL near line 18, col 8
The size of page markup is 28921 bytes

then the size of your markup is greater than 10k and is causing the test to fail.

If you received an error message similar to this:

 FAIL near line 18, col 8
The total download size for this page is 328938 bytes

then the total page size including external resources is causing the test to fail.

To remedy this, you should ensure that all images have been optimised, and that no unnecessary resources have been included in the page (such as unused stylesheets). You may also wish to check that excessive white-space, and comments are not included in your markup.

 

Reference

This test is based on a W3C mobileOK best practice test. See http://www.w3.org/TR/mobile-bp/#PAGE_SIZE_LIMIT for more details

 

Leave a Reply

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