Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
56
|
第
6
章
你处理前端性能的方式将与你习惯采用的方式有所不同。监控前端性能的目标不是
保持运
行状态
,而是
快速加载
。随着时间的推移,当你为应用程序中开发新功能时,前端性能会
因为
静态资产
(也就是你所有的图像、
JavaScript
和
CSS
)的大小而受到影响。
使用这里的策略来评估性能并确保你的改进不会随着时间的推移而丢失,我们将确保你的
前端性能一直在提升,至少你总是知道当前的性能水平。
在不谈论工具的情况下谈论工具
如果像我们在后面章节中所做的那样,那么从一个通用的、非特定于某个工具的位置
去监控前端(
JavaScript
)是很困难的。由于
JavaScript
的特征,所有东西都被抽象出
来并实现为特定的库或工具。虽然在本书中我努力保持工具无关,但使用
JavaScript
做到这一点并不容易。因此,本章会提到几个特定的工具和库,但是不要理解成本书
推荐使用它们,仅仅是举例而已。
6.1
 一个慢应用的代价
作为工程师,我们自然理解慢应用程序对业务不利。我数不清一天中有多少次会对一个缓
慢的网站感到沮丧,然后转而去干别的。但是到底要多糟糕才能算底线呢?你如何以一种
有形的、以金钱为中心的方式来传达前端性能的重要性?你如何让人们相信将时间花在前
端性能上是值得的?你如何衡量结果?
根据
Aberdeen Research 2010
年的一项研究,页面加载时间每延迟一秒,平均会导致页面
浏览量下降
11%
,转换率下降
7%
,客户满意度下降
16%
。该研究发现,当页面加载时间
达到
5.1
秒时,业务开始受到影响,而加载时间的最有效点是在 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750