{"id":16113,"date":"2016-10-24T19:10:48","date_gmt":"2016-10-24T23:10:48","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=16113"},"modified":"2016-10-29T14:37:46","modified_gmt":"2016-10-29T18:37:46","slug":"web-bloat-score-calculator","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/10\/24\/web-bloat-score-calculator\/","title":{"rendered":"Web Bloat Score Calculator"},"content":{"rendered":"<p><a href=\"http:\/\/www.webbloatscore.com\">TestDome<\/a> (via <a href=\"https:\/\/twitter.com\/Pinboard\/status\/789720622230298624\">Maciej Ceg&#322;owski<\/a>):<\/p>\n<blockquote cite=\"http:\/\/www.webbloatscore.com\"><p>Page web bloat score (WebBS for short) is calculated as follows:<\/p><p><em>WebBS = TotalPageSize \/ PageImageSize<\/em><\/p><p><em>TotalPageSize<\/em> is the size of all requests, and <em>PageImageSize<\/em> is the size of a full-page screenshot.<\/p><p>The larger the WebBS, the more bloated a web page is <em>relative to its image representation<\/em>. For example, <a href=\"https:\/\/www.w3.org\/People\/Berners-Lee\/\">Tim Berners-Lee&rsquo;s homepage<\/a> has a WebBS of 0.204, which makes it really efficient, while <a href=\"https:\/\/www.amazon.com\/\">Amazon<\/a> has score of ~20, making it bloated.<\/p><\/blockquote>\n<p>It&rsquo;s a crude metric&mdash;for example, it downsamples retina images, thus penalizing pages that include them&mdash;but interesting nonetheless.<\/p>\n<p>Update (2016-10-29): See also: <a href=\"https:\/\/news.ycombinator.com\/item?id=12783898\">Hacker News<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>TestDome (via Maciej Ceg&#322;owski): Page web bloat score (WebBS for short) is calculated as follows:WebBS = TotalPageSize \/ PageImageSizeTotalPageSize is the size of all requests, and PageImageSize is the size of a full-page screenshot.The larger the WebBS, the more bloated a web page is relative to its image representation. For example, Tim Berners-Lee&rsquo;s homepage has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[138,83,96],"class_list":["post-16113","post","type-post","status-publish","format-standard","hentry","category-technology","tag-optimization","tag-retina","tag-web"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=16113"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16113\/revisions"}],"predecessor-version":[{"id":16163,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16113\/revisions\/16163"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=16113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=16113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=16113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}