{"id":44852,"date":"2018-06-26T21:01:51","date_gmt":"2018-06-26T13:01:51","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=44852"},"modified":"2018-06-26T19:38:43","modified_gmt":"2018-06-26T11:38:43","slug":"make-progressive-images-with-antimoderate","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/","title":{"rendered":"Make Better Progressive Images Loading with AntiModerate"},"content":{"rendered":"<p>The <a href=\"https:\/\/github.com\/whackashoe\/antimoderate\" target=\"_blank\">AntiModerate<\/a> script may not sound like much. But it\u2019s one of the best JS scripts you can run to <a href=\"https:\/\/www.hongkiat.com\/blog\/how-to-measure-front-end-website-performance\/\">improve performance<\/a> on a larger page and maintain a strong user experience.<\/p>\n<p>With this <strong>free plugin, you can load images when they appear in view<\/strong> and reduce your total page size.<\/p>\n<p>This way the entire page can load <strong>first<\/strong> with small placeholders for images. Then your visitors browse naturally without waiting for every asset to load \u2014 always a good thing from the user\u2019s perspective!<\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/wp-image-performance-plugins\/\">9 WordPress Plugins to Improve Images Performance<\/a><\/p>\n<figure><a href=\"https:\/\/github.com\/whackashoe\/antimoderate\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/make-progressive-images-with-antimoderate\/01-example-antimoderate-image-loader.jpg\" alt=\"antimoderate image script\" width=\"1000\" height=\"361\"><\/a><\/figure>\n<p>Here\u2019s how this works: you add the <a href=\"https:\/\/github.com\/whackashoe\/antimoderate\" target=\"_blank\">AntiModerate plugin<\/a> into your page along with the <a href=\"https:\/\/github.com\/flozz\/StackBlur\/\" target=\"_blank\">StackBlur.js<\/a> script.<\/p>\n<p>AntiModerate <strong>pulls image dimensions<\/strong> and forces all img tags into a fixed size on the page. These pre-loaded images are pushed through StackBlur.js which <a href=\"https:\/\/www.hongkiat.com\/blog\/jpeg-optimization-guide\/\">drastically reduces<\/a> the total preview file size, thus loading the page a whole lot sooner.<\/p>\n<p>Once these smaller images are in place then AntiModerate loads the full-size images in the background. Each blurry photo is then replaced with the regular photo once it\u2019s finished downloading. Easy!<\/p>\n<p>This <strong>saves a bunch of time waiting for images<\/strong> and it helps your page load much quicker. It\u2019s a huge benefit to users since they can start consuming content sooner, and it benefits your SERP rankings since Google cares <a href=\"https:\/\/moz.com\/blog\/how-website-speed-actually-impacts-search-ranking\" target=\"_blank\">a lot<\/a> about page speed.<\/p>\n<p>You can install the library directly with npm or <a href=\"https:\/\/www.hongkiat.com\/blog\/bower-package-manager\/\">Bower<\/a>, or by pulling the script through GitHub.<\/p>\n<p>This only requires a few lines of JavaScript and it\u2019s sure to help improve your page loads. Have a peek at the <a href=\"https:\/\/github.com\/whackashoe\/antimoderate\" target=\"_blank\">GitHub repo<\/a> and scroll down to the setup guide to get started.<\/p>\n<figure><a href=\"https:\/\/github.com\/whackashoe\/antimoderate\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/make-progressive-images-with-antimoderate\/02-antimoderate-github-page.jpg\" alt=\"antimoderate plugin lazy loading\" width=\"1000\" height=\"730\"><\/a><\/figure>\n<p>With only a few lines of code, AntiModerate should be a no-brainer to get running on any page.<\/p>\n<p>Not to mention this runs on <strong>pure JavaScript<\/strong> so it doesn\u2019t require any dependencies like jQuery to get working.<\/p>","protected":false},"excerpt":{"rendered":"<p>The AntiModerate script may not sound like much. But it\u2019s one of the best JS scripts you can run to improve performance on a larger page and maintain a strong user experience. With this free plugin, you can load images when they appear in view and reduce your total page size. This way the entire&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[2305,2159],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Make Better Progressive Images Loading with AntiModerate - Hongkiat<\/title>\n<meta name=\"description\" content=\"The AntiModerate script may not sound like much. But it&#039;s one of the best JS scripts you can run to improve performance on a larger page and maintain a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Make Better Progressive Images Loading with AntiModerate\" \/>\n<meta property=\"og:description\" content=\"The AntiModerate script may not sound like much. But it&#039;s one of the best JS scripts you can run to improve performance on a larger page and maintain a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-26T13:01:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/make-progressive-images-with-antimoderate\/01-example-antimoderate-image-loader.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Make Better Progressive Images Loading with AntiModerate\",\"datePublished\":\"2018-06-26T13:01:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/\"},\"wordCount\":328,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/make-progressive-images-with-antimoderate\\\/01-example-antimoderate-image-loader.jpg\",\"keywords\":[\"Image Optimization\",\"website speed\"],\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/\",\"name\":\"Make Better Progressive Images Loading with AntiModerate - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/make-progressive-images-with-antimoderate\\\/01-example-antimoderate-image-loader.jpg\",\"datePublished\":\"2018-06-26T13:01:51+00:00\",\"description\":\"The AntiModerate script may not sound like much. But it's one of the best JS scripts you can run to improve performance on a larger page and maintain a\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/make-progressive-images-with-antimoderate\\\/01-example-antimoderate-image-loader.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/make-progressive-images-with-antimoderate\\\/01-example-antimoderate-image-loader.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/make-progressive-images-with-antimoderate\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Make Better Progressive Images Loading with AntiModerate\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Make Better Progressive Images Loading with AntiModerate - Hongkiat","description":"The AntiModerate script may not sound like much. But it's one of the best JS scripts you can run to improve performance on a larger page and maintain a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/","og_locale":"en_US","og_type":"article","og_title":"Make Better Progressive Images Loading with AntiModerate","og_description":"The AntiModerate script may not sound like much. But it's one of the best JS scripts you can run to improve performance on a larger page and maintain a","og_url":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2018-06-26T13:01:51+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/make-progressive-images-with-antimoderate\/01-example-antimoderate-image-loader.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Make Better Progressive Images Loading with AntiModerate","datePublished":"2018-06-26T13:01:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/"},"wordCount":328,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/make-progressive-images-with-antimoderate\/01-example-antimoderate-image-loader.jpg","keywords":["Image Optimization","website speed"],"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/","url":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/","name":"Make Better Progressive Images Loading with AntiModerate - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/make-progressive-images-with-antimoderate\/01-example-antimoderate-image-loader.jpg","datePublished":"2018-06-26T13:01:51+00:00","description":"The AntiModerate script may not sound like much. But it's one of the best JS scripts you can run to improve performance on a larger page and maintain a","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/make-progressive-images-with-antimoderate\/01-example-antimoderate-image-loader.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/make-progressive-images-with-antimoderate\/01-example-antimoderate-image-loader.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/make-progressive-images-with-antimoderate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Make Better Progressive Images Loading with AntiModerate"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-bFq","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/44852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=44852"}],"version-history":[{"count":1,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/44852\/revisions"}],"predecessor-version":[{"id":44853,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/44852\/revisions\/44853"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=44852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=44852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=44852"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=44852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}