Skip to main content
web.dev for China
Resources
  • Web Platform
  • Dive into the web platform, at your pace.
  • HTML
  • CSS
  • JavaScript
  • User experience
  • Learn how to build better user experiences.
  • Performance
  • Accessibility
  • Identity
  • Learn
  • Get up to speed on web development.
  • Learn HTML
  • Learn CSS
  • Learn JavaScript
  • Learn Performance
  • Learn Accessibility
  • More courses
  • Additional resources
  • Explore content collections, patterns, and more.
  • AI and the web
  • Explore
  • PageSpeed Insights
  • Patterns
  • Podcasts & shows
  • Developer Newsletter
  • About web.dev
Baseline Blog Case Studies
/
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
  • Resources
Privacy Accessibility HTML Images Responsive Design Forms PWA CSS Performance Testing JavaScript
web.dev for China
  • Resources
    • More
    • Privacy
    • Accessibility
    • HTML
    • Images
    • Responsive Design
    • Forms
    • PWA
    • CSS
    • Performance
    • Testing
    • JavaScript
  • Baseline
  • Blog
  • Case Studies
  • Welcome to Learn Performance!
  • Why speed matters
  • General HTML performance considerations
  • Understanding the critical path
  • Optimize resource loading
  • Assist the browser with resource hints
  • Image performance
  • Video performance
  • Optimize web fonts
  • Code-split JavaScript
  • Lazy load images and

JavaScript

JavaScript drives most of the interactivity on the web, but it comes at a cost. Shipping too much JavaScript can make your web page slow to respond during page load, and may even cause responsiveness issues that slow down interactions—both of which can be frustrating for users.

Render-blocking JavaScript

When loading