Web Performance Optimization & Lighthouse · บทเรียน

รู้จัก Google Lighthouse

ทำความรู้จัก Google Lighthouse ความสามารถต่าง ๆ และวิธีที่ช่วยระบุคอขวดด้านประสิทธิภาพกับการละเมิดแนวทางปฏิบัติที่ดีที่สุด

บทเรียน 1 จาก 411 ขั้นตอน

รู้จัก Google Lighthouse เป็นบทเรียน Web Performance Optimization & Lighthouse ฟรีบน CoddyKit นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Web Performance Optimization & Lighthouse และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Web Performance Optimization & Lighthouse มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

What is Google Lighthouse?

Welcome to the world of web performance! Our first stop is Google Lighthouse. It's an open-source, automated tool designed to improve the quality of your web pages.

Think of it as your personal web auditor, giving you insights and recommendations to make your site better.

Why Use Lighthouse?

Why is Lighthouse so important?

  • Identify Issues: It helps you find common problems that slow down your website or hinder user experience.
  • Actionable Advice: Instead of just pointing out issues, it provides clear, practical advice on how to fix them.
  • Improve Quality: By following its recommendations, you can enhance performance, accessibility, SEO, and more.

The 5 Core Audits

Lighthouse performs audits across five key categories to give you a comprehensive overview of your web page's quality:

  • Performance: How fast your page loads and responds.
  • Accessibility: How easily users with disabilities can interact with your page.
  • Best Practices: Ensures your site follows modern web development standards.
  • SEO: Checks for common search engine optimization issues.
  • Progressive Web App (PWA): Assesses if your site meets PWA criteria for a reliable, fast, and engaging experience.

How Lighthouse Audits Work

When you run an audit, Lighthouse simulates a user visiting your page. It does this in a controlled environment to ensure consistent results.

It then runs a series of tests, collects performance metrics, and analyzes the page's structure and content against best practices. Finally, it compiles all this into an easy-to-understand report.

Where to Run Lighthouse

The easiest and most common way to run Lighthouse is directly within your web browser, specifically in Google Chrome's Developer Tools (often called DevTools).

It's built right in, so there's no installation needed to get started!

Your First Audit: DevTools Steps

Ready to try it out? Here's how you'd typically run an audit in Chrome DevTools:

  1. Open your website in Chrome.
  2. Right-click anywhere on the page and select 'Inspect' (or use F12 / Cmd+Option+I).
  3. Go to the 'Lighthouse' tab within DevTools.
  4. Select the categories you want to audit (e.g., Performance, SEO).
  5. Click 'Analyze page load'.

Lighthouse will then run its tests and generate a report for you!

Understanding the Report

Once the audit is complete, Lighthouse presents a detailed report. At the top, you'll see a score for each category (Performance, Accessibility, etc.) from 0 to 100.

A higher score means better quality in that area. Below the scores, you'll find sections like 'Opportunities' and 'Diagnostics', which provide specific recommendations.

Focus on Performance Score

While all categories are important, the Performance score is often the first thing people look at. It's a combined score based on several key metrics that measure how quickly and smoothly your page loads and becomes interactive.

Aim for scores above 90 for a great user experience!

Actionable Insights

The real power of Lighthouse lies in its actionable recommendations. For each issue identified, it suggests specific improvements you can make.

For example, if your images are too large, Lighthouse might suggest 'Serve images in next-gen formats' or 'Efficiently encode images'. These insights guide your optimization efforts.

Lighthouse Categories

Which of the following are among the five core audit categories Google Lighthouse evaluates for a web page?

Recap: Intro to Lighthouse

Great job! You've just been introduced to Google Lighthouse, a powerful tool for analyzing and improving your web pages.

We learned that Lighthouse audits Performance, Accessibility, Best Practices, SEO, and PWA, providing actionable advice. The easiest way to run it is directly in Chrome DevTools. Next, we'll dive deeper into running your first audit and understanding the scoring system!

เริ่มต้นได้ฟรี

เรียนรู้ Web Performance Optimization & Lighthouse ด้วย AI tutor — ฟรี

เขียนและเรียกใช้โค้ดจริงในเบราว์เซอร์ของคุณ รับความช่วยเหลือทันทีจาก AI tutor 24/7 และเรียนรู้ต่อจากที่คุณหยุดบนเว็บหรือในแอป

คอร์ส
12
บทเรียน
48

คำถามที่พบบ่อย

บทเรียน “รู้จัก Google Lighthouse” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “รู้จัก Google Lighthouse” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Web Performance Optimization & Lighthouse ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Web Performance Optimization & Lighthouse มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “รู้จัก Google Lighthouse”

ทำความรู้จัก Google Lighthouse ความสามารถต่าง ๆ และวิธีที่ช่วยระบุคอขวดด้านประสิทธิภาพกับการละเมิดแนวทางปฏิบัติที่ดีที่สุด คุณปฏิบัติ Web Performance Optimization & Lighthouse ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Web Performance Optimization & Lighthouse หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Web Performance Optimization & Lighthouse บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน

บทเรียน “รู้จัก Google Lighthouse” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Web Performance Optimization & Lighthouse นี้ได้ไหม

ได้ บทเรียน Web Performance Optimization & Lighthouse ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. รู้จัก Google Lighthouse
  2. การตรวจสอบครั้งแรกของคุณ
  3. การตีความรายงาน Lighthouse
  4. ทำความเข้าใจการให้คะแนน Lighthouse
← กลับไปที่ Web Performance Optimization & Lighthouse