{"id":29216,"date":"2017-02-15T21:01:25","date_gmt":"2017-02-15T13:01:25","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=29216"},"modified":"2022-08-16T21:06:02","modified_gmt":"2022-08-16T13:06:02","slug":"intercoolerjs","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/","title":{"rendered":"Mix Ajax Into HTML with Intercooler.js"},"content":{"rendered":"<p>It\u2019s never been easier to <strong>add Ajax to any website<\/strong>. In fact it\u2019s pretty common to build entire websites <strong>based around Ajax requests<\/strong> called <strong>Single-Page Apps (or <a target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Single-page_application\" rel=\"noopener\">SPAs<\/a>)<\/strong>.<\/p>\n<p>However this has always required a bit of jQuery and some technical wrangling to <strong>update page content<\/strong>. If you just need some <strong>basic Ajax functionality<\/strong> you can use <strong><a target=\"_blank\" href=\"https:\/\/intercoolerjs.org\/\" rel=\"noopener\">intercooler.js<\/a><\/strong> to mix this right into your HTML.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/ajax-html5-css3-contact-form-tutorial\/\">How to Build an Ajax-Based HTML5 Contact Form<\/a>\n\t\t\t\t<\/p>\n<p>Intercooler lets you write HTML attributes that <strong>natively contain Ajax request URLs<\/strong>. When users click certain links, you can dictate that <strong>Ajax requests run<\/strong> instead of the normal click action.<\/p>\n<p>This all <strong>relies on <a href=\"https:\/\/www.hongkiat.com\/blog\/better-ux-html-data-attributes\/\">HTML5 data-* attributes<\/a><\/strong> such as <code>ic-post-to<\/code>. You can add this attribute to a button or an anchor link, and it\u2019ll <strong>automatically connect into jQuery<\/strong> for an Ajax POST request.<\/p>\n<p>There\u2019s actually a page <strong><a target=\"_blank\" href=\"https:\/\/intercoolerjs.org\/reference.html\" rel=\"noopener\">full of these attributes<\/a><\/strong> on the plugin website. Here\u2019s a bit of <strong>sample code<\/strong> to see how it looks:<\/p>\n<pre>&lt;a ic-post-to=\"\/button_click\"&gt;Click Me!&lt;\/a&gt;<\/pre>\n<p>This would <strong>send an Ajax POST request to the URL <code>\/buton_click<\/code><\/strong>, and <strong>load the response<\/strong> into the container element. Intercooler is a pretty simple library and incredibly powerful once you understand how it works.<\/p>\n<p>Granted this won\u2019t solve all your Ajax problems because it <strong>can\u2019t auto-update other areas of the page<\/strong>. It also <strong>can\u2019t append too many custom features<\/strong> without slowing down the page, so a detailed <abbr title=\"Single Page App\">SPA<\/abbr> should really <strong>use custom Ajax code<\/strong>.<\/p>\n<p>Intercooler.js offers a <strong>more semantic way for writing Ajax code<\/strong> so that it loads and even offers a native fallback.<\/p>\n<p>To <strong>install intercooler<\/strong> you just need a <strong>copy of jQuery<\/strong> along with a <strong>copy of the intercooler library<\/strong> which can be found <a target=\"_blank\" href=\"https:\/\/github.com\/bigskysoftware\/intercooler-js\" rel=\"noopener\">on GitHub<\/a>. You can even <strong>test without downloading<\/strong> any files by using a jQuery CDN and the local <a target=\"_blank\" href=\"https:\/\/cdnjs.com\/libraries\/intercooler-js\" rel=\"noopener\">Intercooler CDN<\/a>.<\/p>\n<p>Put both into a <code>&lt;script&gt;<\/code> tag <strong>in the header of your page<\/strong>, and then just place the HTML attributes wherever you want!<\/p>\n<p>Take a peek at the <strong><a target=\"_blank\" href=\"https:\/\/intercoolerjs.org\/examples\/index.html\" rel=\"noopener\">demos page<\/a><\/strong> to see a <strong>full list of demos<\/strong> you can toy with. I especially like the <a target=\"_blank\" href=\"https:\/\/intercoolerjs.org\/examples\/clicktoedit.html\" rel=\"noopener\">\u2018Click to Edit\u2019<\/a> demo because it shows exactly what\u2019s possible and how far you can take this plugin.<\/p>\n<figure><a target=\"_blank\" href=\"https:\/\/intercoolerjs.org\/examples\/clicktoedit.html\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/intercoolerjs\/02-intercooler-live-demo-edit.jpg\" alt=\"intercooler demo\" width=\"1000\" height=\"370\"><\/a><\/figure>\n<p>If you\u2019re interested in <strong>learning more<\/strong> check out the <strong><a target=\"_blank\" href=\"https:\/\/intercoolerjs.org\/reference.html\" rel=\"noopener\">reference guide<\/a><\/strong> full of intercooler HTML attributes. Each one <strong>performs a different action<\/strong> so it\u2019s crucial to study them all and see what <strong>fits best<\/strong> for your scenario.<\/p>\n<p>Naturally, you can find <strong>all the source code<\/strong> for free <a target=\"_blank\" href=\"https:\/\/github.com\/bigskysoftware\/intercooler-js\" rel=\"noopener\">on GitHub<\/a> along with a <strong>brief installation guide<\/strong>.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/synchronous-asynchronous-javascript\/\">Mastering Synchronous & Asynchronous JavaScript \u2013 Part 1<\/a>\n\t\t\t\t<\/p>","protected":false},"excerpt":{"rendered":"<p>It\u2019s never been easier to add Ajax to any website. In fact it\u2019s pretty common to build entire websites based around Ajax requests called Single-Page Apps (or SPAs). However this has always required a bit of jQuery and some technical wrangling to update page content. If you just need some basic Ajax functionality you can&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[3392],"tags":[506,3497],"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.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Mix Ajax Into HTML with Intercooler.js - Hongkiat<\/title>\n<meta name=\"description\" content=\"It&#039;s never been easier to add Ajax to any website. In fact it&#039;s pretty common to build entire websites based around Ajax requests called Single-Page Apps\" \/>\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\/intercoolerjs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mix Ajax Into HTML with Intercooler.js\" \/>\n<meta property=\"og:description\" content=\"It&#039;s never been easier to add Ajax to any website. In fact it&#039;s pretty common to build entire websites based around Ajax requests called Single-Page Apps\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/\" \/>\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=\"2017-02-15T13:01:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-16T13:06:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/intercoolerjs\/02-intercooler-live-demo-edit.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\\\/intercoolerjs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Mix Ajax Into HTML with Intercooler.js\",\"datePublished\":\"2017-02-15T13:01:25+00:00\",\"dateModified\":\"2022-08-16T13:06:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/\"},\"wordCount\":428,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/intercoolerjs\\\/02-intercooler-live-demo-edit.jpg\",\"keywords\":[\"HTML\",\"Javascript Library\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/\",\"name\":\"Mix Ajax Into HTML with Intercooler.js - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/intercoolerjs\\\/02-intercooler-live-demo-edit.jpg\",\"datePublished\":\"2017-02-15T13:01:25+00:00\",\"dateModified\":\"2022-08-16T13:06:02+00:00\",\"description\":\"It's never been easier to add Ajax to any website. In fact it's pretty common to build entire websites based around Ajax requests called Single-Page Apps\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/intercoolerjs\\\/02-intercooler-live-demo-edit.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/intercoolerjs\\\/02-intercooler-live-demo-edit.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/intercoolerjs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mix Ajax Into HTML with Intercooler.js\"}]},{\"@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":"Mix Ajax Into HTML with Intercooler.js - Hongkiat","description":"It's never been easier to add Ajax to any website. In fact it's pretty common to build entire websites based around Ajax requests called Single-Page Apps","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\/intercoolerjs\/","og_locale":"en_US","og_type":"article","og_title":"Mix Ajax Into HTML with Intercooler.js","og_description":"It's never been easier to add Ajax to any website. In fact it's pretty common to build entire websites based around Ajax requests called Single-Page Apps","og_url":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-02-15T13:01:25+00:00","article_modified_time":"2022-08-16T13:06:02+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/intercoolerjs\/02-intercooler-live-demo-edit.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\/intercoolerjs\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Mix Ajax Into HTML with Intercooler.js","datePublished":"2017-02-15T13:01:25+00:00","dateModified":"2022-08-16T13:06:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/"},"wordCount":428,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/intercoolerjs\/02-intercooler-live-demo-edit.jpg","keywords":["HTML","Javascript Library"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/","url":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/","name":"Mix Ajax Into HTML with Intercooler.js - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/intercoolerjs\/02-intercooler-live-demo-edit.jpg","datePublished":"2017-02-15T13:01:25+00:00","dateModified":"2022-08-16T13:06:02+00:00","description":"It's never been easier to add Ajax to any website. In fact it's pretty common to build entire websites based around Ajax requests called Single-Page Apps","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/intercoolerjs\/02-intercooler-live-demo-edit.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/intercoolerjs\/02-intercooler-live-demo-edit.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/intercoolerjs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Mix Ajax Into HTML with Intercooler.js"}]},{"@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-7Be","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29216","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=29216"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29216\/revisions"}],"predecessor-version":[{"id":61721,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29216\/revisions\/61721"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=29216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=29216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=29216"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=29216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}