写点什么

Using webpack to make Apps fast at Microsoft

  • 2019-08-12
  • 本文字数:1710 字

    阅读完需:约 6 分钟

Using webpack to make Apps fast at Microsoft

GMTC 北京2019大会上,来自 Microsoft 的 Sean Larkin 讲师做了《Using webpack to make Apps fast at Microsoft》主题演讲,主要内容如下。


演讲简介:


Did you know that the average website takes over 16 seconds to load on a mobile device? Did you know that on average the amount JavaScript and CSS that goes wasted is over 60%! If JavaScript and CSS are our most expensive resources to load, why are we hurting our load times by shipping stuff we don’t ever use? How do we get rid of this unused code? How can we profile our web applications load times?


Join me as I teach you about the performance constrains of the modern Web, and how to write rich applications within these boundaries using household tools like webpack.


We’ll learn about how webpack solves these performance problems through a concept called code-splitting. We will walk through examples of code-splitting together, the many ways you can leverage it in your web application, and how webpack  enhances this feature using magic comments, service workers, and prefetch and preload!


By the end of this talk you know:


Where the most costly resources in your we application


How to profile and analyze a web application load-times


Understand what is “unused code” and how to get rid of it with code-splitting and webpack


Learn the many types of code splitting in webpack, and other performance related features like service worker and how to integrate them with webpack


Learn how frameworks adopt code-splitting and the route, component, and library level


How to implement this in your own codebase


参考翻译:


你是否知道,网站在移动设备上的平均加载时间超过 16 秒?


你是否知道,加载的 JavaScript 和 CSS 资源平均浪费超过 60%?


如果 JavaScript 和 CSS 是我们要加载的最昂贵的资源,那为什么要浪费时间去加载一些根本用不着的东西?


我们如何去掉未使用的代码?我们应该如何剖析 Web 应用的加载时间?


本次演讲将介绍现代 Web 的性能约束,并讲解如何使用像 webpack 这样的工具在约束之下编写内容丰富的应用。


我们将学习 webpack 如何通过一个叫代码分离(code-splitting)的概念来解决这些性能问题。我们将通过一些例子来学习,这里演示的方法都可以直接用在自己的 Web 应用中。我还将分享 webpack 如何使用魔法注释(magic comment)、service worker、预取(prefetch)和预加载(preload)等特性来增强代码分离。


你将学到:


1.如何定位 Web 应用中最昂贵的资源


2.如何分析 Web 应用的加载时间


3.理解哪些是未使用代码,以及如何通过代码分离与 webpack 去掉它们


4.学习 webpack 中不同类型的代码分离,了解像 service worker 等其他性能相关的特性,以及如何将其与 webpack 集成


讲师介绍:


Sean Larkin


Microsoft Edge 研发经理 webpack 维护者


Sean Larkin 【廖肖恩 】is a Program Manager at Microsoft working on Edge DevTools, expert on Web Performance, and maintainer of webpack. Outside of work, he works with Fortune 500 companies helping them change their culture for Web Performance practices, Open Source, and embracing emerging technologies. In his free time he loves spending time with his family, hiking, woodworking, cooking, gardening, Orchid cultivating, playing video games, hacking on IoT, and Streaming his open source work!


Sean Larkin【廖肖恩】是 Microsoft 的研发经理,负责 Edge DevTools;他还是 Web 性能专家和 webpack 维护者。在工作之余,他与财富 500 强公司合作,帮助他们改变他们的文化,以实现 Web 性能实践、开源和采用新兴技术。在他的空闲时间里,他喜欢和家人共度时光,远足、木工、烹饪、园艺、兰花培养、玩视频游戏、黑客攻击物联网,以及打磨自己的开源作品!












完整演讲 PPT 下载链接:


https://gmtc.infoq.cn/2019/beijing/schedule


2019-08-12 14:085527

评论

发布
暂无评论
发现更多内容

老司机狂飙之路--EventBus原理简要分析

芝麻粒儿

android EventBus 7月月更

不习惯的Vue3起步四 の 生命周期&provide/inject

空城机

Vue3 7月月更

适合初学者的 10 个JavaScript 代码整洁技巧

devpoint

JavaScript ES6 7月月更 数据操作

纯CSS实现四种方式文本反差色效果

南城FE

CSS 前端 css动画 7月月更 反差色

项目git commit时卡主不良代码:husky让Git检查代码规范化工作

zhoulujun

git husky lint-stated

QT和MFC的优缺点比较

乌龟哥哥

7月月更

你想知道的数组易错知识都在这了-C

芒果酱

7月月更

iOS 中的 Category

NewBoy

ios 前端 移动端 iOS 知识体系 7月月更

在线文本批量查找多个字符串出现的次数工具

入门小站

工具

多传感器时间同步

秃头小苏

时间同步 7月月更

SLSA 框架与软件供应链安全防护

SEAL安全

SLSA 软件供应链安全

QT实现 文件夹复制

小肉球

qt 7月月更

【愚公系列】2022年7月 Go教学课程 009-数据类型之浮点型

愚公搬代码

7月月更

Wireshark抓包分析Eureka注册发现协议

程序员欣宸

Java SpringCloud Eureka 7月月更

RocketMQ之消费者启动与消费流程

vivo互联网技术

RocketMQ 中间件 ACK

Pro 单店版和多店版,你还傻傻分不清楚?

CRMEB

Java面向对象基础

五分钟学大数据

Java 7月月更

Qt|字符排序以及转化问题

中国好公民st

qt 7月月更

图解网络:访问控制列表ACL,功能堪比防火墙!

wljslmz

防火墙 acl 网络技术 7月月更 访问控制列表

Linux 0.12 源码阅读

贾献华

7月月更

5G NR RRC连接控制

柒号华仔

5G 7月月更

在线直播系统源码——开源源码

开源直播系统源码

软件开发 直播源码 开源源码 在线直播系统源码

继承(二)

Jason199

js 继承 7月月更

使用AssemblyScript 构建 WebAssembly 应用

devpoint

webassembly Wasm 7月月更 assemblyscript

《深入 Linux 设备驱动程序那和机制》读书笔记

贾献华

7月月更

在线SQL转TSV工具

入门小站

工具

【LeetCode】奇数值单元格的数目Java题解

Albert

LeetCode 7月月更

深入JS函数中默认参数的使用

猪痞恶霸

前端 js 7月月更

GaussDB云数据库初步使用记录

DS小龙哥

7月月更

Qt | 串口通信 QSerialPort

YOLO.

通信 qt 串口 串口通信 7月月更

Using webpack to make Apps fast at Microsoft_GMTC_Sean Larkin_InfoQ精选文章