{"id":23448,"date":"2020-03-19T21:23:29","date_gmt":"2020-03-19T13:23:29","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=23448"},"modified":"2025-04-24T17:02:45","modified_gmt":"2025-04-24T09:02:45","slug":"on-click-animated-gif","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/","title":{"rendered":"How to Play Animated GIFs onClick"},"content":{"rendered":"<p>The Animated GIF is a popular way to visualize a design concept (here\u2019s an example of how we did it for the post <a href=\"https:\/\/www.hongkiat.com\/blog\/css-text-effects\/\">text effects created with CSS<\/a>) or show off a short video clip. But if you have too many of them in the same page, it will deviate your user\u2019s focus. <strong>For pages that showcase a lot of GIFs, this is bad news.<\/strong><\/p>\n<p>The solution: <strong>serve users with a static image and only allow the animated GIF to run upon user-click<\/strong>. In this short tutorial we\u2019re going to show you how to do just that.<\/p>\n<div class=\"button\">\n    <a href=\"https:\/\/hongkiat.github.io\/gif-onclick\/\" rel=\"nofollow noopener\" target=\"_blank\">View Demo<\/a>\n    <a href=\"https:\/\/github.com\/hongkiat\/gif-onclick\/\" rel=\"nofollow noopener\" target=\"_blank\">Download Source<\/a>\n<\/div>\n<h2>Getting Started<\/h2>\n<p>Begin with preparing the project folders and files which include: an HTML file, the jQuery, and lastly a JavaScript file where we will write our code. You may link jQuery to a CDN or grab the copy and link it to your project directory. I would leave the styles and CSS to your imagination. The essential HTML markup is as follows:<\/p>\n<pre>\n&lt;figure&gt;\n  &lt;img src=\"img\/mobile-wireframe.png\" height=\"300\" width=\"400\" alt=\"Static Image\" data-alt=\"img\/mobile-wireframe.gif\"&gt;\n&lt;\/figure&gt;\n<\/pre>\n<p>Notice the additional <code>data-alt<\/code> attribute in the <code>img<\/code> element. This is where we store the GIF, in place of the static image which we initially serve. You may add more images and also add a caption for each through the <code>figcaption<\/code> element.<\/p>\n<p>After that, we will write the JavaScript that will bring the magic. The idea is to serve the GIF image when the user clicks on the image.<\/p>\n<h2>The JavaScript<\/h2>\n<p>First, we create a function that will retrieve the GIF image path we have put in the <code>data-alt<\/code> attribute. We will loop through each of the image and use <a href=\"https:\/\/api.jquery.com\/data\/\" rel=\"noopener noreferrer\" target=\"_blank\">the jQuery <code>.data()<\/code> method<\/a> to do so:<\/p>\n<pre>\nvar getGif = function() {\n  var gif = [];\n  $('img').each(function() {\n    var data = $(this).data('alt');\n    gif.push(data);\n  });\n  return gif;\n}\nvar gif = getGif();\n<\/pre>\n<p>We run the function and save the output in a variable <code>gif<\/code>, as above. The <code>gif<\/code> variable now contains the path of the GIF from the images in the page.<\/p>\n<h3>Image Pre-loading<\/h3>\n<p>We now have a loading problem: with the GIF not yet loaded, there is a chance that the animated GIF would not play instantly (since the browser would need a few seconds to fully load the GIF). This delay would be felt more significantly when the GIF image size is large.<\/p>\n<p>To avoid this delay, we need to pre-load the GIFs as the page loads. Here\u2019s the code to achieve this:<\/p>\n<pre>\n\/\/ Preload all the GIF.\nvar image = [];\n\n$.each(gif, function(index) {\n  image[index]     = new Image();\n  image[index].src = gif[index];\n});\n<\/pre>\n<p>With this code, if you open your browser\u2019s DevTools and go to the <strong>Network<\/strong> (or <strong>Resources<\/strong>) tab, you\u2019ll see that the GIFs are loaded along with the page, even though they are initially referenced only in the <code>data-alt<\/code> attribute.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" alt=\"Browser Network tab showing GIFs loaded\" height=\"300\" src=\"https:\/\/assets.hongkiat.com\/uploads\/on-click-animated-gif\/gif-loaded.jpg\" width=\"700\"><\/figure>\n<p>The last piece of the code is where we bind each <code>figure<\/code> element that wraps the image with the <code>click<\/code> event.<\/p>\n<p>The code will swap the image source between the <code>src<\/code> attribute where the static image is served and the <code>data-alt<\/code> attribute where we initially serve the GIF image.<\/p>\n<p>The code will also revert to the static image as the user clicks a second time, \u201cstopping\u201d the animation.<\/p>\n<pre>\n$('figure').on('click', function() {\n  var $this   = $(this),\n      $index  = $this.index(),\n      $img    = $this.children('img'),\n      $imgSrc = $img.attr('src'),\n      $imgAlt = $img.attr('data-alt'),\n      $imgExt = $imgAlt.split('.');\n\n  if ($imgExt[1] === 'gif') {\n    $img.attr('src', $img.data('alt')).attr('data-alt', $imgSrc);\n  } else {\n    $img.attr('src', $imgAlt).attr('data-alt', $img.data('alt'));\n  }\n});\n<\/pre>\n<p>And that\u2019s it. You can polish the page with styles, for example, you may add a play button overlaying the image to indicate that it is \u201cplayable\u201d or an animated GIF.<\/p>\n<p>Check out the demo and download the source here.<\/p>\n<div class=\"button\">\n    <a href=\"https:\/\/hongkiat.github.io\/gif-onclick\/\" rel=\"nofollow noopener\" target=\"_blank\">View Demo<\/a>\n    <a href=\"https:\/\/github.com\/hongkiat\/gif-onclick\/\" rel=\"nofollow noopener\" target=\"_blank\">Download Source<\/a>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>The Animated GIF is a popular way to visualize a design concept (here\u2019s an example of how we did it for the post text effects created with CSS) or show off a short video clip. But if you have too many of them in the same page, it will deviate your user\u2019s focus. For pages&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":[3392],"tags":[3686,2637],"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 Play Animated GIFs onClick - Hongkiat<\/title>\n<meta name=\"description\" content=\"The Animated GIF is a popular way to visualize a design concept (here&#039;s an example of how we did it for the post text effects created with CSS) or show\" \/>\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\/on-click-animated-gif\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Play Animated GIFs onClick\" \/>\n<meta property=\"og:description\" content=\"The Animated GIF is a popular way to visualize a design concept (here&#039;s an example of how we did it for the post text effects created with CSS) or show\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/\" \/>\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=\"2020-03-19T13:23:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-24T09:02:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/on-click-animated-gif\/gif-loaded.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"How to Play Animated GIFs onClick\",\"datePublished\":\"2020-03-19T13:23:29+00:00\",\"dateModified\":\"2025-04-24T09:02:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/\"},\"wordCount\":519,\"commentCount\":16,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/on-click-animated-gif\\\/gif-loaded.jpg\",\"keywords\":[\"Animated GIFs\",\"GIF\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/\",\"name\":\"How to Play Animated GIFs onClick - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/on-click-animated-gif\\\/gif-loaded.jpg\",\"datePublished\":\"2020-03-19T13:23:29+00:00\",\"dateModified\":\"2025-04-24T09:02:45+00:00\",\"description\":\"The Animated GIF is a popular way to visualize a design concept (here's an example of how we did it for the post text effects created with CSS) or show\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/on-click-animated-gif\\\/gif-loaded.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/on-click-animated-gif\\\/gif-loaded.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/on-click-animated-gif\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Play Animated GIFs onClick\"}]},{\"@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 Play Animated GIFs onClick - Hongkiat","description":"The Animated GIF is a popular way to visualize a design concept (here's an example of how we did it for the post text effects created with CSS) or show","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\/on-click-animated-gif\/","og_locale":"en_US","og_type":"article","og_title":"How to Play Animated GIFs onClick","og_description":"The Animated GIF is a popular way to visualize a design concept (here's an example of how we did it for the post text effects created with CSS) or show","og_url":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2020-03-19T13:23:29+00:00","article_modified_time":"2025-04-24T09:02:45+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/on-click-animated-gif\/gif-loaded.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"How to Play Animated GIFs onClick","datePublished":"2020-03-19T13:23:29+00:00","dateModified":"2025-04-24T09:02:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/"},"wordCount":519,"commentCount":16,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/on-click-animated-gif\/gif-loaded.jpg","keywords":["Animated GIFs","GIF"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/","url":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/","name":"How to Play Animated GIFs onClick - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/on-click-animated-gif\/gif-loaded.jpg","datePublished":"2020-03-19T13:23:29+00:00","dateModified":"2025-04-24T09:02:45+00:00","description":"The Animated GIF is a popular way to visualize a design concept (here's an example of how we did it for the post text effects created with CSS) or show","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/on-click-animated-gif\/gif-loaded.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/on-click-animated-gif\/gif-loaded.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/on-click-animated-gif\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Play Animated GIFs onClick"}]},{"@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-66c","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/23448","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=23448"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/23448\/revisions"}],"predecessor-version":[{"id":74088,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/23448\/revisions\/74088"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=23448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=23448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=23448"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=23448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}