Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #2914

largest-contentful-paint

Skill này làm gì

Skill này kiểm tra phần tử hiển thị lớn nhất của trang xuất hiện nhanh đến mức nào. Skill dành cho lập trình viên muốn trang có cảm giác sẵn sàng nhanh.

Khi nào nên dùng

  • ✓Khi ảnh chính hoặc tiêu đề của bạn mất nhiều thời gian mới xuất hiện.
  • ✓Khi trang của bạn có điểm kém ở chỉ số Largest Contentful Paint.
  • ✓Khi máy chủ của bạn chậm gửi phản hồi trang đầu tiên.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/largest-contentful-paint/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/largest-contentful-paint/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Vì sao ảnh chính trên trang của tôi mất nhiều thời gian mới hiện ra?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đo thời điểm phần tử lớn nhất xuất hiện và tìm nguyên nhân làm chậm, như ảnh chậm hoặc máy chủ phản hồi chậm. Agent gợi ý tải trước tài nguyên quan trọng, tối ưu ảnh và dùng CDN.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Optimize largest contentful paint

LCP is the most important Core Web Vital for perceived load speed—it measures when the main content becomes visible, directly impacting user perception and SEO rankings.

Quick Reference

  • LCP measures when the largest element renders—target under 2.5s
  • Use preload for hero images and critical resources
  • Optimize image formats and use responsive sizes
  • Reduce server response time (TTFB)

Check

Measure LCP using Lighthouse or PageSpeed Insights. Verify the largest visible element renders within 2.5 seconds.

Fix

Optimize LCP by preloading critical resources, optimizing images, using CDN, and reducing server response time.

Explain

Explain how LCP measures perceived load speed by tracking when the largest visible content element becomes visible.

Code Review

Review the routes, assets, and loading behavior that affect Optimize largest contentful paint. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/largest-contentful-paint

Câu hỏi thường gặp

Skill gợi ý mục tiêu nào?

Skill gợi ý nội dung chính xuất hiện trong khoảng 2,5 giây.

TTFB là gì?

Đó là thời gian máy chủ gửi byte đầu tiên của trang, và skill khuyên giảm thời gian này.

Có thể đo bằng cách nào?

Skill gợi ý Lighthouse hoặc PageSpeed Insights.

Chi tiết

Mô tả gốc của tác giả

Use when auditing slow page loads, heavy assets, or rendering delays related to Optimize largest contentful paint. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2914
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự