{"id":6071,"date":"2019-06-09T21:08:00","date_gmt":"2019-06-09T21:08:00","guid":{"rendered":"https:\/\/gtechbooster.com\/?p=6071"},"modified":"2023-04-01T01:36:52","modified_gmt":"2023-04-01T01:36:52","slug":"default-differential-loading-is-here-with-angular-8","status":"publish","type":"post","link":"https:\/\/gtechbooster.com\/default-differential-loading-is-here-with-angular-8\/","title":{"rendered":"Default Differential Loading is here with Angular 8"},"content":{"rendered":"\n<p>The new release of Angular is here, with improvements to the \nframework, Angular Material, and the CLI designed to improve application\n startup time on modern browsers. There are also new APIs to let \ndevelopers make better use of the CLI.<\/p>\n\n\n\n<div class=\"gtech-migrated-from-ad-inserter-placement-2\" style=\"text-align: center;\" id=\"gtech-686406482\"><div style=\"margin-right: auto;margin-left: auto;text-align: center;\" id=\"gtech-4230026345\"><a data-bid=\"1\" data-no-instant=\"1\" href=\"https:\/\/gtechbooster.com\/linkout\/17207\" rel=\"noopener\" class=\"notrack\" aria-label=\"26001\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gtechbooster.com\/media\/2023\/01\/26001.jpeg\" alt=\"\"  srcset=\"https:\/\/gtechbooster.com\/media\/2023\/01\/26001.jpeg 1024w, https:\/\/gtechbooster.com\/media\/2023\/01\/26001-768x960.jpeg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" width=\"500\" height=\"625\"  style=\"display: inline-block;\" \/><\/a><\/div><\/div><p>Angular is a is a TypeScript-based web application framework. It is  open source, and can be used for building JavaScript apps and dynamic  web pages. It has gained widespread support partially because it&#8217;s a  good framework, and partially because of the work on its development by a  team at Google.<\/p>\n\n\n\n<p>The headline change to the new version is that differential\n loading is turned on by default. Differential loading lets the browser \nin which your app is loaded choose what works best &#8211; modern or legacy \nJavaScript. The new release of Angular automatically performs both a \nmodern build (es2015) and a legacy build (es5) of your application. \nWriting about the new support on the Angular blog, Stephen Fluin said:<\/p>\n\n\n\n<p><em>&#8220;On <a href=\"https:\/\/angular.io\" target=\"_blank\" rel=\"noreferrer noopener\">angular.io<\/a>\n we saved over 40kB of initial bundle size for modern browsers. From the\n community we\u2019ve heard that applications generally save 7\u201320% of their \nbundle size, depending on the amount of modern JavaScript features they \ntake advantage of.&#8221;<\/em><\/p>\n\n\n\n<p>The next improvement in the new version is support for EcmaScript \ndynamic import. This enables lazy loading of routes, meaning Angular now\n follows the JavaScript specification, and apps are more compatible with\n tooling.<\/p>\n\n\n\n<p>WebWorker support is better in this release, making it easier to . \noffload work&nbsp;such as image or video manipulation to a background thread.\n meaning you can write code that moves expensive computation to a \nseparate thread, and have that bundled in a separate script that works \nin the browser. You can now generate new web workers from the CLI, use \nit in your application, and the CLI will be able to bundle and code \nsplit it correctly.<\/p>\n\n\n\n<p>There&#8217;s also a new Builders API in the CLI that can be used by  tooling developers to replace the behavior of CLI commands such as build  and test.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">More Information<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/angular.io\/\">Angular Site<\/a><\/li><\/ul>\n<div class=\"gtech-end-cont\" id=\"gtech-3576454710\"><div style=\"margin-right: auto;margin-left: auto;text-align: center;\" id=\"gtech-3877977316\"><a data-bid=\"1\" data-no-instant=\"1\" href=\"https:\/\/gtechbooster.com\/linkout\/17207\" rel=\"noopener\" class=\"notrack\" aria-label=\"26001\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gtechbooster.com\/media\/2023\/01\/26001.jpeg\" alt=\"\"  srcset=\"https:\/\/gtechbooster.com\/media\/2023\/01\/26001.jpeg 1024w, https:\/\/gtechbooster.com\/media\/2023\/01\/26001-768x960.jpeg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" width=\"500\" height=\"625\"  style=\"display: inline-block;\" \/><\/a><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>The new release of Angular is here, with improvements to the framework, Angular Material, and the CLI designed to improve application startup time on modern browsers. There are also new APIs to let developers make better use of the CLI. Angular is a is a TypeScript-based web application framework. It is open source, and can [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":6072,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1915],"tags":[936,83,372,6],"class_list":["post-6071","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ndocs","tag-angular-js","tag-api","tag-google","tag-programming"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts\/6071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/comments?post=6071"}],"version-history":[{"count":0,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/posts\/6071\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/media\/6072"}],"wp:attachment":[{"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/media?parent=6071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/categories?post=6071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gtechbooster.com\/api-json\/wp\/v2\/tags?post=6071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}