Performance Metrics 101: Page Size
It's vital that your site perform well. Customers today are more discriminating than ever, and if your site takes too long to load, they'll just go somewhere else. Learn how to keep them on your site here.
Join the DZone community and get the full member experience.Join For Free
website development has come a long way – from a few simple lines of static html and drab layouts to dynamic pages with fluid and interactive designs. websites are now a complex web of advanced html, intuitive code, heavy media content, images, and third-party plugins.
inevitably, this has created bloated websites which directly affects the end user experience. the world of technology has risen to support modern websites with better hardware and browsers, but the average page speed of websites continues to inch upward. the growing number of sluggish websites has pushed the case for website optimization and the need for performance monitoring.
tech terms explained
total downloaded bytes
the total sum of downloaded bytes for all files included on the web page.
the time taken from when the url request is issued to the browser triggering the onload event. this excludes time taken by any dynamic requests made later.
the time taken from the request being issued to receiving the last byte of the final element on the page.
why is page size a metric?
performance monitoring allows us to pinpoint where exactly a site is slowing down and what is causing it to do so. there are a number of metrics that help us gauge website performance, but one that directly influences the end user experience is the page size or the total downloaded bytes. the total page size can have a significant effect on the page speed, which is why minimizing webpage size is routinely cited as the first step in optimizing a website.
piling on the bulk
impact of page size
the higher the number of elements/items on the page, the higher the number of connections needs to be established to download the content and consequently this adds to the overall load time. to understand this better, let us compare the data catchpoint has collected for the top 50 ir websites as part of our upcoming q2 benchmark report.
the table below lists the bottom 15 websites (ranked by document complete); we can see how the page size has a negative impact on the overall load time.
now, let’s compare this data with the sites that ranked in the top 15:
there are two glaring conclusions to this comparison:
the website with the lowest total downloaded bytes (less than an mb) had an average of 102 items and a webpage response that was less than 2.3 seconds.
in contrast, the heaviest site (4.4 mb in total downloaded bytes) had an average of 283 items and a webpage response that is greater than six seconds.
let’s view the effect of these numbers from a real user’s perspective using the filmstrip feature–an important part of the catchpoint monitoring tool.
example 1 (slow and heavy website)
example 2 (website with small page size)
the user has to wait 8 seconds to be able to fully load the website while the site with better performance loads within 3 seconds. the load time becomes more significant when you consider the fact that users expect websites to load within 2-3 seconds. this can be a pain for online retailers as impatient customers would quickly move on to a competitor’s website that loads much faster. the impact that page size has on load time cannot be ignored and the data we have compared makes it obvious – if we want to optimize site speed then we should first look at the page size and all the content that makes up the page.
simply static or richly dynamic?
most businesses rely on their online presence for everything from branding, marketing to sales. it wouldn’t be fair to expect websites to use minimum images or content to improve speed, websites would not be able to cater to the growing demands of technology without the rich features and fluid design. we should instead focus on ways to trim the page size, to begin with – always follow the best practices . we will discuss, in detail, the techniques you must implement along with the best practices in the next post.
Published at DZone with permission of Kameerath Abdul Kareem, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.