{"id":21645,"date":"2014-07-16T15:01:30","date_gmt":"2014-07-16T07:01:30","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=21645"},"modified":"2025-04-04T02:00:29","modified_gmt":"2025-04-03T18:00:29","slug":"high-res-with-retina-js","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/","title":{"rendered":"Enhance Mobile Web Experience with RetinaJS for High-Res Images"},"content":{"rendered":"<p>With the advent of high-resolution screens on mobile devices, users have come to expect images that are sharp and detailed. This shift in expectations means web developers must ensure their images meet this high-quality standard. Images that looked fine a decade ago can now appear blurry on modern retina display screens, signaling a need for updated methods of displaying graphics on the web.<\/p>\n<p>Different techniques can be employed based on the image\u2019s intended use. For icons or logos, <a href=\"https:\/\/www.hongkiat.com\/blog\/webfont-icons\/\">Font Icon<\/a> and <a href=\"https:\/\/www.hongkiat.com\/blog\/scalable-vector-graphic\/\">SVG<\/a> are preferred for their scalability. Meanwhile, <a href=\"https:\/\/www.hongkiat.com\/blog\/css-retina-display\/\">Media Queries<\/a> are ideal for controlling image display through CSS.<\/p>\n<p>If your goal is to incorporate high-resolution images directly within your website\u2019s content, then Retina.js is your solution. <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/strues\/retinajs\">Retina.js<\/a> is a JavaScript library designed to simplify the process of serving high-resolution images without needing significant code adjustments. Let\u2019s dive into how it works.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/css-retina-display\/\" class=\"ref-block__link\" title=\"Read More: Understanding Retina Displays and Media Queries\" rel=\"bookmark\"><span class=\"screen-reader-text\">Understanding Retina Displays and Media Queries<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/css-retina-display.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-17713 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/css-retina-display.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">Understanding Retina Displays and Media Queries<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tApple revolutionized screen quality with its Retina display. This technology offers incredibly clear, vibrant, and detailed images. However,...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>How to Begin with Retina.js<\/h2>\n<p>Retina.js is a standalone solution that doesn\u2019t depend on any external libraries. Simply download the Retina.js <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/strues\/retinajs\">file<\/a> and include it in your HTML. Alternatively, you can use a CDN, such as <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cdnjs.com\/libraries\/retina.js\">CDNJS.com<\/a>, to link to the file like this:<\/p>\n<pre>\r\n &lt;script src=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/retina.js\/1.0.1\/retina.js\"&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>Retina.js provides <strong>two methods<\/strong> for serving high-resolution images on your website.<\/p>\n<h3>First Method<\/h3>\n<p>Following Apple\u2019s convention, Retina.js initially used a method where high-resolution images are marked with an @2x suffix. For example, a high-resolution version of autumn.jpg would be named <code>autumn@2x.jpg<\/code>. From version 1.3.0 onwards, Retina.js added a new suffix, <code>_2x<\/code>, offering you an alternative naming convention, such as <code>autumn_2x.jpg<\/code>.<\/p>\n<p>When a visitor with a high-resolution screen accesses your site, Retina.js searches for images with these suffixes on your server and replaces the standard images with their high-resolution counterparts. To facilitate this process, make sure to store the high-resolution images in the same directory as their standard versions.<\/p>\n<h3>Second Method<\/h3>\n<p>An alternative approach involves using the <code>data-at2x<\/code> attribute within the <code>img<\/code> tag as shown below:<\/p>\n<pre>\r\n &lt;img src=\"img\/autumn.jpg\" data-at2x=\"img-hi-res\/image-autumn.jpg\" alt=\"\"&gt;\r\n<\/pre>\n<p>This method allows for different naming conventions or folder structures, bypassing the need for a server check and thus speeding up the process.<\/p>\n<p>Try opening your website on both a regular and a high-resolution screen to see the difference in clarity and detail, as illustrated in the comparison below.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/image-comparison.jpg\" alt=\"Image comparison with and without Retina.js\" height=\"320\" width=\"500\"><\/figure>\n<h3>Utilizing LESS Mixins<\/h3>\n<p>Retina.js also offers a LESS Mixin, <code>.at2x<\/code>, for serving images through CSS. For instance, this code:<\/p>\n<pre>\r\n.social-icons {\r\n .at2x('image\/icons.jpg');\r\n}\r\n<\/pre>\n<p>\u2026gets compiled into the following CSS:<\/p>\n<pre>\r\n.social-icons {\r\n background-image: url('image\/icons.jpg');\r\n}\r\n@media (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3\/2), (min-resolution: 1.5dppx) {\r\n .social-icons {\r\n background-image: url(\"image\/icons@2x.jpg\");\r\n background-size: auto auto;\r\n }\r\n}\r\n<\/pre>\n<p>This feature can be quite useful for seamlessly integrating high-resolution images into your CSS styling.<\/p>\n<h2>Integrating Retina.js with WordPress<\/h2>\n<p>For WordPress enthusiasts looking to enhance their site\u2019s imagery, the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/wordpress.org\/\/plugins\/wp-retina-2x\/\">WP Retina 2x plugin<\/a> is a perfect tool. Once installed and with your images uploaded, navigate to the <strong>Media &gt; WP Retina 2x<\/strong> section on your dashboard. Here, you\u2019ll find a list of your uploaded images ready for Retina display optimization.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/generate-retina.jpg\" alt=\"Generating Retina Images in WordPress\" height=\"100\" width=\"500\"><\/figure>\n<p>By clicking the <span class=\"key\">Generate<\/span> button, the plugin will produce versions of your images with the <code>@2x<\/code> suffix for various sizes such as Thumbnail, Medium, Large, and any other custom sizes you\u2019ve set up.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/wp-plugin.jpg\" alt=\"WordPress Plugin for Retina Images\" height=\"200\" width=\"500\"><\/figure>\n<h2>Concluding Thoughts<\/h2>\n<p>As devices with high-resolution displays become increasingly common, it\u2019s becoming crucial for web developers to adapt and support these technologies. Retina.js stands out as an all-encompassing solution for delivering high-resolution images on the web. Whether it\u2019s using images with the <code>@2x<\/code> or <code>data-*<\/code> attributes in your content, utilizing <code>.at2x<\/code> Mixins for CSS, or leveraging a WordPress plugin, Retina.js equips you with the tools needed to meet and exceed modern web standards.<\/p>","protected":false},"excerpt":{"rendered":"<p>With the advent of high-resolution screens on mobile devices, users have come to expect images that are sharp and detailed. This shift in expectations means web developers must ensure their images meet this high-quality standard. Images that looked fine a decade ago can now appear blurry on modern retina display screens, signaling a need for&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393,352],"tags":[4117,4646],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Display High-Res Images on Mobile Devices<\/title>\n<meta name=\"description\" content=\"With the advent of high-resolution screens on mobile devices, users have come to expect images that are sharp and detailed. This shift in expectations\" \/>\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\/high-res-with-retina-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enhance Mobile Web Experience with RetinaJS for High-Res Images\" \/>\n<meta property=\"og:description\" content=\"With the advent of high-resolution screens on mobile devices, users have come to expect images that are sharp and detailed. This shift in expectations\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/\" \/>\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=\"2014-07-16T07:01:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T18:00:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/image-comparison.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"Enhance Mobile Web Experience with RetinaJS for High-Res Images\",\"datePublished\":\"2014-07-16T07:01:30+00:00\",\"dateModified\":\"2025-04-03T18:00:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/\"},\"wordCount\":578,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/high-res-with-retina-js\\\/image-comparison.jpg\",\"keywords\":[\"Javascripts\",\"Mobile Website Design &amp; Dev\"],\"articleSection\":[\"Toolkit\",\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/\",\"name\":\"How To Display High-Res Images on Mobile Devices\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/high-res-with-retina-js\\\/image-comparison.jpg\",\"datePublished\":\"2014-07-16T07:01:30+00:00\",\"dateModified\":\"2025-04-03T18:00:29+00:00\",\"description\":\"With the advent of high-resolution screens on mobile devices, users have come to expect images that are sharp and detailed. This shift in expectations\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/high-res-with-retina-js\\\/image-comparison.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/high-res-with-retina-js\\\/image-comparison.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/high-res-with-retina-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enhance Mobile Web Experience with RetinaJS for High-Res Images\"}]},{\"@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\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Display High-Res Images on Mobile Devices","description":"With the advent of high-resolution screens on mobile devices, users have come to expect images that are sharp and detailed. This shift in expectations","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\/high-res-with-retina-js\/","og_locale":"en_US","og_type":"article","og_title":"Enhance Mobile Web Experience with RetinaJS for High-Res Images","og_description":"With the advent of high-resolution screens on mobile devices, users have come to expect images that are sharp and detailed. This shift in expectations","og_url":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2014-07-16T07:01:30+00:00","article_modified_time":"2025-04-03T18:00:29+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/image-comparison.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"Enhance Mobile Web Experience with RetinaJS for High-Res Images","datePublished":"2014-07-16T07:01:30+00:00","dateModified":"2025-04-03T18:00:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/"},"wordCount":578,"commentCount":4,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/image-comparison.jpg","keywords":["Javascripts","Mobile Website Design &amp; Dev"],"articleSection":["Toolkit","Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/","url":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/","name":"How To Display High-Res Images on Mobile Devices","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/image-comparison.jpg","datePublished":"2014-07-16T07:01:30+00:00","dateModified":"2025-04-03T18:00:29+00:00","description":"With the advent of high-resolution screens on mobile devices, users have come to expect images that are sharp and detailed. This shift in expectations","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/image-comparison.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/high-res-with-retina-js\/image-comparison.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/high-res-with-retina-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Enhance Mobile Web Experience with RetinaJS for High-Res Images"}]},{"@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\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-5D7","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21645","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\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=21645"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21645\/revisions"}],"predecessor-version":[{"id":73708,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/21645\/revisions\/73708"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=21645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=21645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=21645"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=21645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}