{"id":15850,"date":"2021-08-09T09:00:00","date_gmt":"2021-08-09T07:00:00","guid":{"rendered":"https:\/\/www.codemotion.com\/magazine\/?p=15850"},"modified":"2023-06-26T14:52:17","modified_gmt":"2023-06-26T12:52:17","slug":"javascript-speed-up-tips","status":"publish","type":"post","link":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/","title":{"rendered":"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks"},"content":{"rendered":"\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-73aebfa8 wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-undefined uagb-block-36f8190d     \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tTable Of Contents\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#1-reduce-application-size-with-webpack\" class=\"uagb-toc-link__trigger\">#1. Reduce application size with Webpack<\/a><li class=\"uagb-toc__list\"><a href=\"#2-remove-unused-javascript\" class=\"uagb-toc-link__trigger\">#2. Remove unused JavaScript<\/a><li class=\"uagb-toc__list\"><a href=\"#3-place-javascript-at-the-bottom-of-the-page\" class=\"uagb-toc-link__trigger\">#3. Place JavaScript at the bottom of the page<\/a><li class=\"uagb-toc__list\"><a href=\"#4-use-minification\" class=\"uagb-toc-link__trigger\">#4. Use minification<\/a><li class=\"uagb-toc__list\"><a href=\"#5-use-gzip-compression\" class=\"uagb-toc-link__trigger\">#5. Use Gzip compression<\/a><li class=\"uagb-toc__list\"><a href=\"#6-use-http2\" class=\"uagb-toc-link__trigger\">#6. Use HTTP\/2<\/a><li class=\"uagb-toc__list\"><a href=\"#7-use-pointer-references\" class=\"uagb-toc-link__trigger\">#7. Use pointer references<\/a><li class=\"uagb-toc__list\"><a href=\"#8-trim-your-html\" class=\"uagb-toc-link__trigger\">#8. Trim your HTML<\/a><li class=\"uagb-toc__list\"><a href=\"#9-use-documentgetelementbyid\" class=\"uagb-toc-link__trigger\">#9. Use document.getElementById()<\/a><li class=\"uagb-toc__list\"><a href=\"#10-batch-your-dom-changes\" class=\"uagb-toc-link__trigger\">#10. Batch your DOM changes<\/a><li class=\"uagb-toc__list\"><a href=\"#11-buffer-your-dom\" class=\"uagb-toc-link__trigger\">#11. Buffer your DOM\u00a0<\/a><li class=\"uagb-toc__list\"><a href=\"#12-compress-your-files\" class=\"uagb-toc-link__trigger\">#12. Compress your files<\/a><li class=\"uagb-toc__list\"><a href=\"#13-minify-javascript-code-for-smaller-file-sizes\" class=\"uagb-toc-link__trigger\">#13. Minify JavaScript code for smaller file sizes<\/a><li class=\"uagb-toc__list\"><a href=\"#14-asynchronous-loading-of-javascript-defer-and-async-tags\" class=\"uagb-toc-link__trigger\">#14. Asynchronous loading of JavaScript: Defer and Async tags<\/a><li class=\"uagb-toc__list\"><a href=\"#15-exclude-unused-components-of-js-libraries\" class=\"uagb-toc-link__trigger\">#15. Exclude unused components of .js libraries<\/a><li class=\"uagb-toc__list\"><a href=\"#16-dont-forget-var-keyword-when-assigning-a-variables-value-for-the-first-time\" class=\"uagb-toc-link__trigger\">#16. Don\u2019t forget var keyword when assigning a variable\u2019s value for the first time.<\/a><li class=\"uagb-toc__list\"><a href=\"#17-avoid-the-use-of-eval-or-the-function-constructor\" class=\"uagb-toc-link__trigger\">#17. Avoid the use of eval() or the Function constructor<\/a><li class=\"uagb-toc__list\"><a href=\"#18-avoid-unnecessary-access-to-dom\" class=\"uagb-toc-link__trigger\">#18. Avoid unnecessary access to DOM<\/a><li class=\"uagb-toc__list\"><a href=\"#19-use-a-javascript-content-delivery-network-cdn\" class=\"uagb-toc-link__trigger\">#19. Use a JavaScript content delivery network (CDN)<\/a><li class=\"uagb-toc__list\"><a href=\"#20-limit-library-dependencies\" class=\"uagb-toc-link__trigger\">#20. Limit library dependencies<\/a><li class=\"uagb-toc__list\"><a href=\"#summary\" class=\"uagb-toc-link__trigger\">Summary<\/a><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<p><a href=\"https:\/\/www.codemotion.com\/magazine\/dev-hub\/javascript\/javascript-ultimate-guide\/\">JavaScript<\/a> is a truly amazing tool for front-end programming and web development, creating interactive, feature-rich websites and fast, seamless web applications. Every <a href=\"https:\/\/www.codemotion.com\/magazine\/dev-hub\/web-developer\/javascript-alternatives\/\" target=\"_blank\" rel=\"noopener\" class=\"ek-link\">web developer knows JavaScript<\/a>, but when used without caution or expertise, it can be a double-edged sword.&nbsp;<\/p>\n\n\n\n<p><strong>Poorly written JavaScript code<\/strong> can slow your website, negatively affecting load times and rendering speed.&nbsp; Read on to find out how to reduce or avoid slodowns of your JS code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-1-reduce-application-size-with-webpack\">#1. <strong>Reduce application size with Webpack<\/strong><\/h2>\n\n\n\n<p>The size of the application gets increased when you keep adding JavaScript modules in the application. This method increases more files in your application, and thus the application becomes slower and bulkier. This decreases the overall quality of the application. Adding larger file size creates a massive gap between the content developers wrote and what the browser could understand.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-2-remove-unused-javascript\">#2. <strong>Remove unused JavaScript<\/strong><\/h2>\n\n\n\n<p>Remove the JavaScript file, which is of no use in your application. It will reduce the transmission time, and it will also reduce the time which it takes for the browser to analyse and compile the code. Remove all the functionalities from your application, which are of no use to the users. Remove that with all the JavaScript code associated with it.&nbsp;<\/p>\n\n\n\n<p>Elena Brown, a web developer at <a href=\"https:\/\/1day2write.com\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\">1day2write<\/a> and <a href=\"https:\/\/writemyx.com\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\">Write My X<\/a> says- \u201cYour web application will load faster and the user will have a better experience. Remove the unnecessary libraries or dependencies from your code that don\u2019t serve any purpose.\u201d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-3-place-javascript-at-the-bottom-of-the-page\">#3. <strong>Place JavaScript at the bottom of the page<\/strong><\/h2>\n\n\n\n<p>This is one of the common techniques developers prefer to speed up the performance of the website. Placing <a href=\"https:\/\/www.codemotion.com\/magazine\/dev-hub\/javascript\/javascript-ide\/\" target=\"_blank\" rel=\"noopener\">JavaScript code at the top<\/a> of the webpage slower down the performance. It\u2019s good to place it at the bottom. Your webpage won\u2019t just load faster but also in some cases it saves the total amount of code needed<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-4-use-minification\">#4. <strong>Use minification<\/strong><\/h2>\n\n\n\n<p>This is another common technique to follow in web development when it comes to loading faster a website. You can reduce the size of your file by removing the unwanted JavaScript documents character such as tabs, spaces, etc. When you\u2019re doing it make sure that you\u2019re not changing the functionality of the website.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2020\/04\/code-3337044_1280-1024x576.jpg\" alt=\"Random javascript code on a computer display.\" class=\"wp-image-3893\" srcset=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2020\/04\/code-3337044_1280-1024x576.jpg 1024w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2020\/04\/code-3337044_1280-300x169.jpg 300w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2020\/04\/code-3337044_1280-768x432.jpg 768w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2020\/04\/code-3337044_1280-896x504.jpg 896w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2020\/04\/code-3337044_1280-400x225.jpg 400w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2020\/04\/code-3337044_1280.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-5-use-gzip-compression\">#5. <strong>Use Gzip compression<\/strong><\/h2>\n\n\n\n<p>JavaScript files can be very large that may impact the load time of your website. Gzip which is good software can be used to compress your JavaScript file. Today most of the servers and clients support Gzip.&nbsp;<\/p>\n\n\n\n<p>When a browser requests a resource, the server compresses the response before sending it to the web browser. This software reduces the size of the JavaScript file, saves bandwidth, and accelerates the performance of the website.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-6-use-http-2\">#6. <strong>Use HTTP\/2<\/strong><\/h2>\n\n\n\n<p>HTTP\/2 is the latest version of the HTTP protocol and provides some great enhancements that will not only help improve your JavaScript performance but will also help speed up your site in general. HTTP\/2 uses multiplexing, therefore allowing multiple requests and responses to be sent at the same time. If you haven&#8217;t moved to HTTPS yet, be sure to do so as soon as possible to take advantage of the performance improvements that HTTP\/2 has to offer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-7-use-pointer-references\">#7. <strong>Use pointer references<\/strong><\/h2>\n\n\n\n<p>You can also cut down on <a href=\"https:\/\/www.codemotion.com\/magazine\/dev-hub\/frontend-dev\/the-dom-and-its-shadow\/\" target=\"_blank\" rel=\"noopener\">DOM<\/a> traversal trips by storing pointer references for in-browser objects during instantiation. If you don&#8217;t expect your DOM to change, storing a reference to the DOM or jQuery objects needed to create your page can help speed everything along. Alternatively, if you need to iterate inside a function, but you haven&#8217;t stored a reference, you can make a local variable with a reference to the object.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-8-trim-your-html\">#8. <strong>Trim your HTML<\/strong><\/h2>\n\n\n\n<p>Landon Wright. a business writer at <a href=\"https:\/\/britstudent.com\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\">Britstudent<\/a> and <a href=\"https:\/\/phdkingdom.com\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\">PhD Kingdom<\/a> advises- \u201cThe complexity of your HTML plays a large role in determining how long it takes to query and modify DOM objects. If you can cut your application&#8217;s HTML by half, you could potentially double your DOM speed.\u201d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-9-use-document-getelementbyid\">#9. <strong>Use document.getElementById()<\/strong><\/h2>\n\n\n\n<p>Using jQuery lets you create specific selectors based on tag names and classes, but this approach necessitates several iterations as jQuery loops through DOM elements to find a match. You can speed up the DOM by using the document.getElementById() method instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-10-batch-your-dom-changes\">#10. <strong>Batch your DOM changes<\/strong><\/h2>\n\n\n\n<p>Every time you make DOM changes, batch them up to prevent repeated screen rendering. If you&#8217;re making style changes, try to make all of your modifications at once rather than applying changes to each style individually.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-11-buffer-your-dom\">#11. <strong>Buffer your DOM&nbsp;<\/strong><\/h2>\n\n\n\n<p>If you have scrollable DIVs, you can use a buffer to remove items from the DOM that aren&#8217;t currently visible inside the viewport. This technique helps you save on both memory usage and DOM traversal.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-12-compress-your-files\">#12. <strong>Compress your files<\/strong><\/h2>\n\n\n\n<p>Use a compression method such as Gzip or Brotli to reduce the size of your JavaScript files. With a smaller sizes file, users will be able to download the asset faster, resulting in improved performance.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/12\/ferenc-almasi-oCm8nPkE40k-unsplash-scaled.jpg\" alt=\"Javascript code on a display.\" class=\"wp-image-6887\" width=\"732\" height=\"517\" srcset=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/12\/ferenc-almasi-oCm8nPkE40k-unsplash-scaled.jpg 955w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/12\/ferenc-almasi-oCm8nPkE40k-unsplash-scaled-300x212.jpg 300w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/12\/ferenc-almasi-oCm8nPkE40k-unsplash-scaled-768x543.jpg 768w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/12\/ferenc-almasi-oCm8nPkE40k-unsplash-scaled-180x128.jpg 180w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><figcaption class=\"wp-element-caption\">Photo by Ferenc Almasi on Unsplash<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-13-minify-javascript-code-for-smaller-file-sizes\">#13. <strong>Minify JavaScript code for smaller file sizes<\/strong><\/h2>\n\n\n\n<p>Minifying code is different from obfuscating code, but both are methods of transforming JavaScript\u2014to be more difficult to read, or to make it smaller. Minification accomplishes the latter, and can shrink file sizes to decrease page load times.<\/p>\n\n\n\n<p>Line breaks, additional spaces, comments etc.\u2014all of this increases the size of a JavaScript file and affects the speed of page load. Compressing the code solves this issue well. Machines are not sensitive to the visual style of code like a human would be. Computers can read and launch minified code, even if all of your Javascript fits in just one string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-14-asynchronous-loading-of-javascript-defer-and-async-tags\">#14. <strong>Asynchronous loading of JavaScript: Defer and Async tags<\/strong><\/h2>\n\n\n\n<p>Asynchronous loading of JavaScript is a type of sync loading. It means that your website loads in a multi-streamed way. When the browser finds the string with &lt;script src=&#8221;some.js&#8221;&gt;&lt;\/script&gt;, it will stop creation of DOM and CSSOM models while the JavaScript is executed. This is why most JavaScript code is located after the main HTML code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-15-exclude-unused-components-of-js-libraries\">#15. <strong>Exclude unused components of .js libraries<\/strong><\/h2>\n\n\n\n<p>Most developers use libraries like jQuery UI or jQuery Mobile as is. This means that the code includes all possible components of each library, when you may only need two or three. A similar situation occurs with other JavaScript libraries as well. If you have the ability to manage what components will be included in your package of library, definitely do it. Your website will load much faster, and your visitors will get a better experience.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-16-don-t-forget-var-keyword-when-assigning-a-variable-s-value-for-the-first-time\">#16. <strong>Don\u2019t forget var keyword when assigning a variable\u2019s value for the first time.<\/strong><\/h2>\n\n\n\n<p>Assignment to an undeclared variable automatically results in a global variable being created. Avoid global variables.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-17-avoid-the-use-of-eval-or-the-function-constructor\">#17. <strong>Avoid the use of eval() or the Function constructor<\/strong><\/h2>\n\n\n\n<p>Use of eval or the <a href=\"https:\/\/www.codemotion.com\/magazine\/dev-hub\/web-developer\/the-what-why-and-how-of-javascript-functional-programming\/\" target=\"_blank\" rel=\"noopener\">Function<\/a> constructor are expensive operations as each time they are called script engine must convert source code to executable code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-18-avoid-unnecessary-access-to-dom\">#18. <strong>Avoid unnecessary access to DOM<\/strong><\/h2>\n\n\n\n<p>Accessing DOM slowers down the performance of the website. The browser has to refresh the page every time when you interact with the DOM outside the JavaScript native environment. It\u2019s good to keep DOM access to a minimum or in your web application if you need to read the content several times then it\u2019s good to save it in local variables.&nbsp;<\/p>\n\n\n\n<p>Keep in mind that if you remove the value of the DOM then set the variable to NULL to avoid the memory leak in your application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-19-use-a-javascript-content-delivery-network-cdn\">#19. <strong>Use a JavaScript content delivery network (CDN)<\/strong><\/h2>\n\n\n\n<p>A CDN is not a panacea. For example, if your project is not worldwide and you opt to use a CDN that doesn\u2019t have a local server in your country (e.g., the Russian Federation), this will increase a page load time. Using a CDN is supposed to make things run faster, but in certain cases, it can have the opposite effect. You can use Cedexis to generate reports that compare various CDNs to help you to decide which provider is most affordable for your use case.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-20-limit-library-dependencies\">#20. <strong>Limit library dependencies<\/strong><\/h2>\n\n\n\n<p>Library dependencies add a lot to loading times, so strive to keep their use to a minimum, and avoid them entirely if at all possible. One way to reduce your dependency on external libraries is to rely more on in-browser technology.<\/p>\n\n\n\n<p>Furthermore, if you need complex CSS selectors, try using Sizzle.js instead of jQuery. If you have libraries that contain just one feature, it makes more sense to just add that feature separately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-summary\"><strong>Summary<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/07\/JavaScript-logo-1024x1024.png\" alt=\"JavaScript logo\" class=\"wp-image-15503\" width=\"256\" height=\"256\" srcset=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/07\/JavaScript-logo-1024x1024.png 1024w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/07\/JavaScript-logo-300x300.png 300w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/07\/JavaScript-logo-150x150.png 150w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/07\/JavaScript-logo-768x768.png 768w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/07\/JavaScript-logo-600x600.png 600w, https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/07\/JavaScript-logo.png 1052w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/figure>\n\n\n\n<p>Many of the individual JavaScript speed-up tips above give your JS a very small performance boost; however, if implemented together, you and your users should notice a significant improvement in how fast your websites and applications run. <\/p>\n\n\n\n<p>It may be difficult for you to remember all of these pointers when working under a deadline, but the sooner you start implementing best practices, the less likely you are to encounter JavaScript performance problems later on. <\/p>\n\n\n\n<p>Therefore, you should keep your own personal list of JavaScript optimization techniques by your side until they become second nature.<\/p>\n\n\n\n<p>[jwp-video n=&#8221;1&#8243;]<\/p>\n\n\n\n<p>Note: This article was provided by <em>Michael Dehoyos, who assists companies in their marketing strategy concepts, and contributes to numerous sites and publications. Also, he is a writer at <\/em><a href=\"https:\/\/nextcoursework.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Coursework Writing Service<\/em><\/a><em> and a a web developer and editor at <\/em><a href=\"https:\/\/academicbrits.com\/essay-writing-services\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Essay Writing Service<\/em><\/a><em> and <\/em><a href=\"https:\/\/originwritings.com\/essay-help\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Essay Help<\/em><\/a><em>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript is a truly amazing tool for front-end programming and web development, creating interactive, feature-rich websites and fast, seamless web applications. Every web developer knows JavaScript, but when used without caution or expertise, it can be a double-edged sword.&nbsp; Poorly written JavaScript code can slow your website, negatively affecting load times and rendering speed.&nbsp; Read&#8230; <a class=\"more-link\" href=\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/\">Read more<\/a><\/p>\n","protected":false},"author":129,"featured_media":15860,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":6,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","_uag_custom_page_level_css":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[8],"tags":[9898],"collections":[],"class_list":{"0":"post-15850","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-javascript","8":"tag-tips","9":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>JavaScript Tips: Speed-Up Your Coding! - Codemotion Magazine<\/title>\n<meta name=\"description\" content=\"Poorly written code can slow your website. Learn some JavaScript tips and useful tools to help you avoid any slowdown.\" \/>\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.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks\" \/>\n<meta property=\"og:description\" content=\"Poorly written code can slow your website. Learn some JavaScript tips and useful tools to help you avoid any slowdown.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/\" \/>\n<meta property=\"og:site_name\" content=\"Codemotion Magazine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Codemotion.Italy\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-09T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-26T12:52:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Dehoyos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodemotionIT\" \/>\n<meta name=\"twitter:site\" content=\"@CodemotionIT\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Dehoyos\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/\"},\"author\":{\"name\":\"Michael Dehoyos\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/c1eef7059ddc7a8b44bbf879534e49d0\"},\"headline\":\"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks\",\"datePublished\":\"2021-08-09T07:00:00+00:00\",\"dateModified\":\"2023-06-26T12:52:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/\"},\"wordCount\":1567,\"publisher\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg\",\"keywords\":[\"Tips\"],\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/\",\"name\":\"JavaScript Tips: Speed-Up Your Coding! - Codemotion Magazine\",\"isPartOf\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg\",\"datePublished\":\"2021-08-09T07:00:00+00:00\",\"dateModified\":\"2023-06-26T12:52:17+00:00\",\"description\":\"Poorly written code can slow your website. Learn some JavaScript tips and useful tools to help you avoid any slowdown.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#primaryimage\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg\",\"contentUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg\",\"width\":1200,\"height\":628,\"caption\":\"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Frontend\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript\",\"item\":\"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#website\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/\",\"name\":\"Codemotion Magazine\",\"description\":\"We code the future. Together\",\"publisher\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.codemotion.com\/magazine\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#organization\",\"name\":\"Codemotion\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png\",\"contentUrl\":\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png\",\"width\":225,\"height\":225,\"caption\":\"Codemotion\"},\"image\":{\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Codemotion.Italy\/\",\"https:\/\/x.com\/CodemotionIT\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/c1eef7059ddc7a8b44bbf879534e49d0\",\"name\":\"Michael Dehoyos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/313048f37b3b167a9aea2c0f472bfbece4232e775c4200e133bc5acf93f42204?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/313048f37b3b167a9aea2c0f472bfbece4232e775c4200e133bc5acf93f42204?s=96&d=mm&r=g\",\"caption\":\"Michael Dehoyos\"},\"description\":\"Michael Dehoyos assists companies in their marketing strategy concepts, and contributes to numerous sites and publications. Also, he is a writer at Coursework Writing Service and a a web developer and editor at Essay Writing Service and Essay Help.\",\"url\":\"https:\/\/www.codemotion.com\/magazine\/author\/michael-dehoyos\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JavaScript Tips: Speed-Up Your Coding! - Codemotion Magazine","description":"Poorly written code can slow your website. Learn some JavaScript tips and useful tools to help you avoid any slowdown.","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.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/","og_locale":"en_US","og_type":"article","og_title":"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks","og_description":"Poorly written code can slow your website. Learn some JavaScript tips and useful tools to help you avoid any slowdown.","og_url":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/","og_site_name":"Codemotion Magazine","article_publisher":"https:\/\/www.facebook.com\/Codemotion.Italy\/","article_published_time":"2021-08-09T07:00:00+00:00","article_modified_time":"2023-06-26T12:52:17+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg","type":"image\/jpeg"}],"author":"Michael Dehoyos","twitter_card":"summary_large_image","twitter_creator":"@CodemotionIT","twitter_site":"@CodemotionIT","twitter_misc":{"Written by":"Michael Dehoyos","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#article","isPartOf":{"@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/"},"author":{"name":"Michael Dehoyos","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/c1eef7059ddc7a8b44bbf879534e49d0"},"headline":"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks","datePublished":"2021-08-09T07:00:00+00:00","dateModified":"2023-06-26T12:52:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/"},"wordCount":1567,"publisher":{"@id":"https:\/\/www.codemotion.com\/magazine\/#organization"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg","keywords":["Tips"],"articleSection":["JavaScript"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/","url":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/","name":"JavaScript Tips: Speed-Up Your Coding! - Codemotion Magazine","isPartOf":{"@id":"https:\/\/www.codemotion.com\/magazine\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#primaryimage"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg","datePublished":"2021-08-09T07:00:00+00:00","dateModified":"2023-06-26T12:52:17+00:00","description":"Poorly written code can slow your website. Learn some JavaScript tips and useful tools to help you avoid any slowdown.","breadcrumb":{"@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#primaryimage","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg","width":1200,"height":628,"caption":"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/javascript-speed-up-tips\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codemotion.com\/magazine\/"},{"@type":"ListItem","position":2,"name":"Frontend","item":"https:\/\/www.codemotion.com\/magazine\/frontend\/"},{"@type":"ListItem","position":3,"name":"JavaScript","item":"https:\/\/www.codemotion.com\/magazine\/frontend\/javascript\/"},{"@type":"ListItem","position":4,"name":"Increase Your Speed and Efficiency With These 20 Incredible JavaScript Tips and Tricks"}]},{"@type":"WebSite","@id":"https:\/\/www.codemotion.com\/magazine\/#website","url":"https:\/\/www.codemotion.com\/magazine\/","name":"Codemotion Magazine","description":"We code the future. Together","publisher":{"@id":"https:\/\/www.codemotion.com\/magazine\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codemotion.com\/magazine\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codemotion.com\/magazine\/#organization","name":"Codemotion","url":"https:\/\/www.codemotion.com\/magazine\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png","width":225,"height":225,"caption":"Codemotion"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Codemotion.Italy\/","https:\/\/x.com\/CodemotionIT"]},{"@type":"Person","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/c1eef7059ddc7a8b44bbf879534e49d0","name":"Michael Dehoyos","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/313048f37b3b167a9aea2c0f472bfbece4232e775c4200e133bc5acf93f42204?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/313048f37b3b167a9aea2c0f472bfbece4232e775c4200e133bc5acf93f42204?s=96&d=mm&r=g","caption":"Michael Dehoyos"},"description":"Michael Dehoyos assists companies in their marketing strategy concepts, and contributes to numerous sites and publications. Also, he is a writer at Coursework Writing Service and a a web developer and editor at Essay Writing Service and Essay Help.","url":"https:\/\/www.codemotion.com\/magazine\/author\/michael-dehoyos\/"}]}},"featured_image_src":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-600x400.jpg","featured_image_src_square":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-600x600.jpg","author_info":{"display_name":"Michael Dehoyos","author_link":"https:\/\/www.codemotion.com\/magazine\/author\/michael-dehoyos\/"},"uagb_featured_image_src":{"full":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg",1200,628,false],"thumbnail":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-150x150.jpg",150,150,true],"medium":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-300x157.jpg",300,157,true],"medium_large":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-768x402.jpg",768,402,true],"large":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-1024x536.jpg",1024,536,true],"1536x1536":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg",1200,628,false],"2048x2048":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg",1200,628,false],"small-home-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks.jpg",100,52,false],"sidebar-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-180x128.jpg",180,128,true],"genesis-singular-images":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-896x504.jpg",896,504,true],"archive-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-400x225.jpg",400,225,true],"gb-block-post-grid-landscape":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-600x400.jpg",600,400,true],"gb-block-post-grid-square":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2021\/08\/Increase-Your-Speed-and-Efficiency-With-These-20-Incredible-JavaScript-Tips-and-Tricks-600x600.jpg",600,600,true]},"uagb_author_info":{"display_name":"Michael Dehoyos","author_link":"https:\/\/www.codemotion.com\/magazine\/author\/michael-dehoyos\/"},"uagb_comment_info":0,"uagb_excerpt":"JavaScript is a truly amazing tool for front-end programming and web development, creating interactive, feature-rich websites and fast, seamless web applications. Every web developer knows JavaScript, but when used without caution or expertise, it can be a double-edged sword.&nbsp; Poorly written JavaScript code can slow your website, negatively affecting load times and rendering speed.&nbsp; Read&#8230;&hellip;","lang":"en","_links":{"self":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/15850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/users\/129"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/comments?post=15850"}],"version-history":[{"count":7,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/15850\/revisions"}],"predecessor-version":[{"id":21615,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/15850\/revisions\/21615"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/media\/15860"}],"wp:attachment":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/media?parent=15850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/categories?post=15850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/tags?post=15850"},{"taxonomy":"collections","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/collections?post=15850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}