写点什么

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:085529

评论

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

new Vue的时候到底做了什么

bb_xiaxia1998

Vue

九月书单

图灵社区

科普 计算机 新书

UI 自动化测试应不应该投入?有没有前途?怎样做最明智?

测吧(北京)科技有限公司

测试

软件测试 | 测试开发 | Python 自动化测试(四):数据驱动

测吧(北京)科技有限公司

测试

物联网平台常见问题与答案汇总

阿里云AIoT

数据 物联网平台 物联网 协议 mqtt

从URL输入到页面展现到底发生什么?

loveX001

JavaScript

P5~P9应该具备的核心能力是什么

博文视点Broadview

禅道项目管理软件App使用

禅道项目管理

项目管理 App 禅道

软件测试 | 测试开发 | UI 自动化测试实战(二)| 测试数据的数据驱动

测吧(北京)科技有限公司

测试

面向对象设计原则,历久弥新

有态度的马甲

APISIX是怎么跑起来的

geange

lua api 网关 APISIX 网关 APISIX的源码解析

透视星环科技上市:基础工具、技术融合、场景应用三维击穿

易观分析

数据

面试官让你说说react状态管理?

beifeng1996

React

orbeon form 通过 url 的方式同第三方应用集成的开发明细

汪子熙

Java SAP commerce form 9月月更

源码学习之MyBatis的底层查询原理

京东科技开发者

Java sql 源码 mybatis mybatis源码

九月书单

图灵教育

科普 计算机 新书

仅需30行代码,轻松集成HMS Core视频编辑服务屏幕录制能力

HarmonyOS SDK

编辑 视频

小程序化:系统集成行业降本增效的破局思考

FinClip

国庆节,零代码帮你搞定假期美食菜单,体验赢定制好礼

华为云开发者联盟

人工智能 企业号九月金秋榜

一键实现设备高稳定高安全管理——设备管理运维类

阿里云AIoT

分布式数据库 安全 监控 物联网 存储

大数据ELK(八):Elasticsearch安装IK分词器插件

Lansonli

ES 9月月更

Java进阶(三十七)java 自动装箱与拆箱

No Silver Bullet

Java 9月月更 自动装箱 拆箱

一道React面试题把我整懵了

beifeng1996

React

keep move!滑动窗口中位数与滑动魔方

掘金安东尼

算法 9月月更

vue项目性能优化-前端加分项

bb_xiaxia1998

Vue

Ohos-MPChart——支持多种图表绘制的组件

OpenHarmony开发者

OpenHarmony

2022年中国HR SaaS行业洞察

易观分析

HR SaaS

【web开发基础】PHP快速入门(5)-PHP运算符之算术运算符和字符串运算符详解

迷彩

运算符 php开源 9月月更 web开发基础 算术运算符

Java中Interface天天都在写,你知道其背后的原理是什么吗?

wljslmz

Java 接口 9月月更

互联网进入存量博弈时代,小程序技术创造移动应用新机遇

FinClip

finclip

sentinel-dashboard-apollo 1.8.5 发布,支持 apollo 持久化的定制版

铁匠

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