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

avif-format

Skill này làm gì

Skill này kiểm tra xem website có phục vụ ảnh AVIF cho các trình duyệt hỗ trợ hay không. Skill dành cho lập trình viên muốn ảnh nhẹ hơn và trang tải nhanh hơn.

Khi nào nên dùng

  • ✓Khi website của bạn phục vụ ảnh JPEG hoặc PNG lớn.
  • ✓Khi bạn muốn thêm ảnh AVIF kèm phương án dự phòng cho trình duyệt cũ.
  • ✓Khi tốc độ trang kém vì kích thước ảnh.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/avif-format/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/avif-format/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

“Hãy thiết lập ảnh AVIF cho thư viện sản phẩm của tôi, có phương án JPEG dự phòng cho trình duyệt cũ.”

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

Cách hoạt động

Agent thêm nguồn AVIF bên trong phần tử picture, kèm phương án WebP và JPEG dự phòng, để mỗi trình duyệt nhận được định dạng mà nó hỗ trợ.

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.

Use AVIF format for modern browsers

AVIF provides the best compression available—50% smaller than JPEG and 20% smaller than WebP—dramatically reducing bandwidth and improving load times.

Quick Reference

  • AVIF offers 50% better compression than JPEG
  • Even better than WebP for photographic images
  • Use picture element with WebP and JPEG fallbacks
  • Browser support: Chrome, Firefox, Safari 16+, Edge

Check

Check if the website supports AVIF format for even better compression than WebP.

Fix

Implement AVIF support with proper fallbacks for browsers that don't support it.

Explain

Explain how AVIF provides 50% better compression than JPEG with superior quality.

Code Review

Review image assets, markup, and delivery configuration related to Use AVIF format for modern browsers. Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.


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

Rule page: https://frontendchecklist.io/rules/images/avif-format

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

File AVIF nhẹ hơn bao nhiêu?

Skill nói AVIF nhẹ hơn khoảng 50 phần trăm so với JPEG và 20 phần trăm so với WebP khi dùng cho ảnh chụp.

Những trình duyệt nào hỗ trợ AVIF?

Skill liệt kê Chrome, Firefox, Safari 16 trở lên và Edge.

Phần tử picture là gì?

Đó là một phần tử HTML cho phép trình duyệt chọn định dạng ảnh tốt nhất mà nó hỗ trợ.

Chi tiết

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

Use when reviewing image assets, markup, and CDN or build transforms related to Use AVIF format for modern browsers. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2752
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ự