Skip to Content
JavaScript 经典实例:第三版
book

JavaScript 经典实例:第三版

by Adam D. Scott, Matthew MacDonald, Shelley Powers
September 2022
Intermediate to advanced
585 pages
8h 17m
Chinese
China Electric Power Press Ltd.
Content preview from JavaScript 经典实例:第三版
426
16
渐进式
Web
应用是
Web
向前迈出的一大步,而且与所用的框架无关,既可以使用
HTML
CSS
JavaScript
构建,也可以使用最新的
JavaScript
框架。本节只对
相关技术做了简单的介绍。
Tal Alter
的《
Building Progressive Web Apps
》(
O
Reilly
一书深入讲解了渐进式
Web
应用的特性和功能。
16.4
测试和剖析渐进式
Web
应用
16.4.1
问题
你想测试渐进式
Web
应用有没有满足所有需求。
16.4.2
方案
使用
Lighthouse
https://oreil.ly/hEdHB
)审查性能、无障碍功能、最佳实践、
SEO
和渐进式
Web
应用准则。若想使用
Lighthouse
,在
Google Chrome
开发者工具中打
开“
Lighthouse
”标签页最简单。打开网站(线上或本地
Web
服务器都可以),然
后点击“生成报告”(见图
16-4
)。
16
-
4
Chrome 开发者工具中的 Lighthouse
Lighthouse
将生成一份报告,为得分较低的项目提供改进建议(见图
16-5
和图
16-6
)。
Chrome
开发者工具中如何使用
Lighthouse
剖析渐进式
Web
应用之外的网
站,详见
11.4
节。
编写
Web
应用
427
16 ...
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

JavaScript

JavaScript

T. J. Crowder
JavaScript

JavaScript

David Flanagan
JavaScript Patterns

JavaScript Patterns

Stoyan Stefanov

Publisher Resources

ISBN: 9787519869601