Web Performance with Webpack Год выпуска: 2018 Производитель: frontendmasters.com Сайт производителя: https://frontendmasters.com/courses/performance-webpack/ Автор: Sean Larkin Продолжительность: 1 hours, 43 mi Тип раздаваемого материала: Видеоклипы Язык: Английский Описание: Learn to solve the most common website performance issues with Sean Larkin, core maintainer of Webpack 4! You'll learn to build instant-loading websites by lazy loading your JavaScript with code splitting, removing unused code with tree shaking, and prefetching assets with magic comments. Webpack was created specifically for web performance and this course Sean will teach you how to use all of Webpack's powerful performance optimization features! Slides (Google Slides) - https://docs.google.com/presentation/d/1FW3GT9Ww1S6SEGu8HAO5eRZUFggfVuFE2ievNCDWVDo/edit?usp=sharing Code (Github) - https://github.com/thelarkinn/webpack-workshop-2018
Содержание
Table of Contents Web Performance Top Performance Issues 00:00:00 - 00:02:32 Top Performance Issues Sean identifies the main cause of slow web page loading as the amount of JavaScript, CSS, and network requests on initial download. - https://docs.google.com/presentation/d/1FW3GT9Ww1S6SEGu8HAO5eRZUFggfVuFE2ievNCDWVDo/edit?usp=sharing Performance Goals 00:02:33 - 00:05:13 Performance Goals Sean reviews goals that should be met in order to meet a high-performance application that loads fast on desktop & mobile as well as emerging markets. - https://github.com/TheLarkInn/webpack-workshop-2018 Code Coverage 00:05:14 - 00:13:18 Code Coverage Sean demonstrates how to determine code coverage, which shows how much code is used to render a page versus how much code was loaded. - https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage Code Splitting 00:13:19 - 00:17:03 Code Splitting Sean discusses the code splitting technique, which is a code Webpack feature. Code splitting is the process of splitting code into asynchronous chunks at build time. Code Splitting Types of Code Splitting 00:17:04 - 00:21:14 Types of Code Splitting After the discussing the importance of web performance, Sean reviews two types of code splitting, static and dynamic. - https://docs.google.com/presentation/d/1FW3GT9Ww1S6SEGu8HAO5eRZUFggfVuFE2ievNCDWVDo/edit?usp=sharing Code Splitting Demonstration 00:21:15 - 00:29:34 Code Splitting Demonstration Sean demonstrates a simple code splitting example. Webpack Code Splitting Under the Hood 00:29:35 - 00:38:04 Webpack Code Splitting Under the Hood Sean walks through Webpack's runtime to illustrate how Webpack supports code splitting. Load a Heavy Module Asynchronously 00:38:05 - 00:44:45 Load a Heavy Module Asynchronously Sean examines how to load a library asynchronously through code splitting. Code Splitting in Vue, React, & Frameworks 00:44:46 - 00:53:21 Code Splitting in Vue, React, & Frameworks Sean reviews code splitting in popular frameworks noting that some frameworks view code splitting feature as a first-class citizen when other frameworks do not. Code Splitting Named Exports 00:53:22 - 00:56:22 Code Splitting Named Exports Sean answers a student question regarding the ability to lazy loading a named export. Vendor Bundles are an Anti Pattern 00:56:23 - 00:59:02 Vendor Bundles are an Anti Pattern Prompted by a question from a student on vendor bundles, Sean discusses the priority of reducing the smallest amount of code versus caching code. Dynamic Code Splitting 00:59:03 - 01:03:56 Dynamic Code Splitting Sean reviews dynamic code splitting, which is the loading of asynchronous bundle based on runtime conditions. Dynamic Code Splitting Walkthrough 01:03:57 - 01:15:42 Dynamic Code Splitting Walkthrough Sean walks through an example of dynamic code splitting. Module Methods & Magic Comments Introducing Magic Comments 01:15:43 - 01:21:52 Introducing Magic Comments Sean discusses magic comments, which is a process for naming the chunks corresponding to the modules/components being imported. - https://webpack.js.org/api/module-methods/ Webpack Modes 01:21:53 - 01:27:30 Webpack Modes Sean reviews Webpack modes, which can determine how code splitting may occur. - https://webpack.js.org/api/module-methods/#import- Webpack Prefetch & Preload 01:27:31 - 01:36:05 Webpack Prefetch & Preload Sean examines Webpack's native preload and prefetch support. This ability allows for non-critical assets to be loaded in the background during the browser's idle time so that they are ready when a user requests them creating a better user experience. Wrapping Up Code Splitting 01:36:06 - 01:38:16 Wrapping Up Code Splitting Sean delivers some final thoughts on code splitting. Webpack Config Organization 01:38:17 - 01:41:05 Webpack Config Organization Prompted by a student question, Sean reviews tips for setting up Webpack configuration. Building Your Library with Webpack 01:41:06 - 01:43:48 Building Your Library with Webpack Sean discusses the conditions when one might build a JavaScript library with Webpack.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum