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

การกำหนดงบประมาณประสิทธิภาพ

กำหนดและจัดทำงบประมาณประสิทธิภาพสำหรับตัวชี้วัดสำคัญ เพื่อให้เว็บไซต์ยังคงทำงานได้รวดเร็วเมื่อมีการพัฒนาเพิ่มเติม

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

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

What are Performance Budgets?

Just like financial budgets, performance budgets set limits to keep your website fast and efficient.

They are specific, measurable thresholds for various performance metrics. Think of them as guardrails that prevent your site from becoming slow over time.

Why Are Budgets Essential?

Without budgets, performance can slowly degrade with new features or content. This is called "performance regression".

  • Prevent Regressions: Catch performance drops early.
  • Maintain UX: Ensure a consistently fast user experience.
  • Team Alignment: Give developers clear performance goals.
  • Business Impact: Protect conversion rates and SEO rankings.

Categories of Performance Budgets

Performance budgets can be set for various aspects of your website. Understanding these categories helps you choose the right focus.

Common types include budgets for resource size, load times, quantity of requests, and even overall performance scores.

Resource Size Budgets

This type of budget limits the total size of assets your page loads. Larger files mean longer download times, especially on slower networks.

  • JavaScript: e.g., max 150KB (gzipped) for critical JS.
  • CSS: e.g., max 50KB (gzipped).
  • Images: e.g., max 1MB total for all images on a page.

These budgets help keep your total page weight in check.

Load Time Budgets

These budgets focus on how quickly specific parts of your page load and become interactive. They directly impact user perception of speed.

  • First Contentful Paint (FCP): e.g., under 1.8 seconds.
  • Largest Contentful Paint (LCP): e.g., under 2.5 seconds.
  • Time to Interactive (TTI): e.g., under 3.8 seconds.

These are often tied to Core Web Vitals.

Quantity-Based Budgets

Sometimes, the number of items or requests can impact performance, even if individual items are small. Fewer requests often mean faster loading.

  • HTTP Requests: e.g., max 30 requests per page load.
  • Web Fonts: e.g., max 2 font families.
  • Third-Party Scripts: e.g., max 5 external scripts.

This helps reduce network overhead and processing.

Score-Based Budgets

You can also set budgets based on overall performance scores from tools like Google Lighthouse. This provides a holistic target for your site's health.

For example, you might aim for a minimum Lighthouse Performance Score of 90 on mobile. This combines many metrics into a single, easy-to-track number.

Establishing a Performance Baseline

Before setting budgets, you need to know your current performance. This "baseline" helps you define realistic and impactful targets.

  • Audit Your Site: Use Lighthouse or other tools to measure current metrics.
  • Analyze Competitors: See how your site stacks up against industry leaders.
  • Understand User Data: Check your analytics for real user performance (RUM data).

Setting Achievable Budget Targets

Your performance budget targets should be ambitious but achievable. Consider your users' expectations, business goals, and technical constraints.

Start with a few key metrics and iterate. It's better to hit a few important targets consistently than to miss many overly aggressive ones.

Check Your Knowledge

Time to test your understanding of performance budget types.

Recap: Setting Performance Budgets

We've learned that performance budgets are crucial for maintaining a fast website over time. They act as limits for various metrics.

You can budget by resource size, load time, quantity of requests, or overall performance scores. Always establish a baseline before setting realistic and achievable targets.

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

บทเรียน “การกำหนดงบประมาณประสิทธิภาพ” ฟรีหรือไม่

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

คุณจะเรียนรู้อะไรในบทเรียน “การกำหนดงบประมาณประสิทธิภาพ”

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

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

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

บทเรียน “การกำหนดงบประมาณประสิทธิภาพ” ใช้เวลานานแค่ไหน

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

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

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

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

  1. การกำหนดงบประมาณประสิทธิภาพ
  2. การตรวจติดตามและแจ้งเตือนงบประมาณ
  3. เทคโนโลยีประสิทธิภาพที่เกิดขึ้นใหม่
  4. การสื่อสารเรื่องประสิทธิภาพกับผู้มีส่วนได้ส่วนเสีย
← กลับไปที่ Web Performance Optimization & Lighthouse