Mastering Speed and Quality for AI-Generated Applications
Addy Osmani

#Web
#AI
#browser
#ChatGPT
#LLM
🚀 توی وب امروز، پرفورمنس فقط یه آپشن "خوب" نیست، بلکه یه ضرورت حیاتیه. تاخیر زیاد یا ناپایدار موقع لود شدن ، کاربرها رو فراری میده، در حالی که یه تجربه سریع و قابل اعتماد، اعتماد میسازه و اونها رو درگیر نگه میداره.
📘 کتاب مهندسی پرفورمنس وب در عصر هوش مصنوعی یه راهنمای جامع و عملی برای توسعهدهندهها، لیدهای فنی و مهندسهای پرفورمنسه که روی ارائه تجربههای وب با تاثیر بالا و کاربر-محور تمرکز دارن.
👨نویسنده این کتاب ادی عثمانی، مدیر بخش هوش مصنوعی گوگل کلاوده؛ اون توی این کتاب بینشهای عمیق فنی رو با تاکید زیاد روی کاربردپذیری و اثربخشی در دنیای واقعی ترکیب کرده.
🔍 با استفاده از مطالعههای موردی، تکنیکهای بهینهسازی مدرن و رویکرد کاربر-محور، یاد میگیری چطور گلوگاهها رو شناسایی کنی، مشکلات پرفورمنس رو دیباگ کنی و بهبودهایی اعمال کنی که تغییرات ملموسی ایجاد میکنه.
🌐 این کتاب با تکیه بر ساختار داخلی مرورگرهای فعلی و متریکهای پرفورمنس، تو رو آماده میکنه تا وبسایتهای سریعتر و تابآورتری رو در مقیاس بالا طراحی و نگهداری کنی.
✨ آنچه یاد خواهید گرفت:
• درک اینکه کاربرها چطور سرعت رو درک میکنن و چرا این موضوع اهمیت داره
• ارزیابی و بهبود پرفورمنس با استفاده از متریکهای کلیدی
• بهینهسازی برای پایداری، پاسخگویی و زمان لود
• شناسایی و رفع رایجترین گلوگاههای پرفورمنس
• پیادهسازی استراتژیهای واقعی که منجر به نتایج ماندگار میشه
📑 فهرست مطالب
بخش اول: پرفورمنس همان تجربه کاربری است
بخش دوم: بهینهسازی پرفورمنس وب در عصر هوش مصنوعی
بخش سوم: بهینهسازی جاوااسکریپت
بخش چهارم: مدیریت وابستگیها و حفظ کیفیت
بخش پنجم: آینده پرفورمنس وب
✍️ از مقدمه کتاب:
⏱️ توی وب امروز، تفاوت بین یه تجربه روان و لذتبخش با یه تجربه خستهکننده که کاربر رهاش میکنه، اغلب فقط چند میلیثانیهست.
📊 پرفورمنس فقط یه متریک فنی نیست؛ بلکه زیربنای رضایت کاربر و موفقیت بیزنسه. در عین حال، ابزارهای کمکی هوش مصنوعی روش طراحی، ساخت و عرضه این تجربهها رو تغییر دادن.
🤖 ما الان میتونیم فرانتآندهای آماده محصول یا حتی کل اپلیکیشنها رو توی چند دقیقه تولید کنیم، اما ویژگیهای پرفورمنسی اونها هنوز توی محدودیتهای واقعی مرورگرها، دستگاهها و شبکهها زندگی میکنه.
📖 کتاب مهندسی پرفورمنس وب در عصر هوش مصنوعی یه راهنمای جامع برای مهندسها و لیدهای فنیه که نیاز دارن توی این دوران پرشتاب هوش مصنوعی، تجربههای وب سریع، پاسخگو و مقاومی ارائه بدن.
👤 من ادی عثمانی هستم، یکی از لیدهای فنی تیم پرفورمنس وب گوگل کروم؛ توی این کتاب جدیدترین تکنیکها، متریکها، ساختارهای داخلی مرورگر و متدهای آگاه به هوش مصنوعی رو که کار مدرن پرفورمنس رو تعریف میکنن، خلاصه کردم.
👥 چه کسانی باید این کتاب را بخوانند؟
💻 این کتاب برای توسعهدهندههای فرانتآند، مهندسهای پرفورمنس وب و تصمیمگیرندههای فنی نوشته شده که اصول پایه ساخت وبسایت رو میدونن و دنبال این هستن که با تسلط بر بهینهسازی پرفورمنس، تجربههایی بسازن که کاربرها عاشقش باشن.
🛠️ چه همین الان برای کارهای روزمره کدنویسی از ابزارهایی مثل Cursor، GitHub Copilot، ChatGPT، Gemini یا بقیه دستیارهای مبتنی بر LLM استفاده میکنی، چه تازه داری هوش مصنوعی رو وارد ورکفلوی خودت میکنی، هدف اینه که بهت کمک بشه تجربههایی عرضه کنی که صرفنظر از اینکه کد چطور نوشته شده، سریع و پایدار باقی بمونن.
📚 فرض ما اینه که تو با HTML، CSS و JavaScript آشنایی داری. از اونجا به بعد، ما عمیق میشیم توی اصول و تمرینهایی که برای ساخت و نگهداری اپلیکیشنهای وب با پرفورمنس بالا لازمه، از جمله واقعیتهای جدید کدهای تولید شده یا تقویت شده توسط هوش مصنوعی.
✍️ درباره نویسنده
ادی عثمانی به مدت ۱۴ سال رهبر مهندسی در گوگل بوده و تجربه توسعهدهندهها و کاربری میلیاردها نفر رو بهبود داده. ادی نویسنده پرشور کتابهای متعددی هست، از جمله کتاب رهبری تیمهای مهندسی موثر: درسهایی برای متخصصین فنی و مدیران از ۱۰ سال حضور در گوگل.
On today's web, performance isn't just a nice-to-have—it's essential. A slow or unstable experience drives users away, while a fast, reliable one builds trust and keeps them engaged. Web Performance Engineering in the Age of AI is a comprehensive, hands-on guide for developers, technical leads, and performance engineers focused on delivering high-impact, user-first web experiences. Written by Addy Osmani, director at Google Cloud AI, this book combines deep technical insight with a strong emphasis on usability and real-world effectiveness.
Through case studies, modern optimization techniques, and a user-centered approach, you'll learn how to identify bottlenecks, debug performance issues, and apply improvements that make a measurable difference. Grounded in current browser internals and performance metrics, this book prepares you to design and maintain faster, more resilient websites at scale.
Table of Contents
Part I. Performance Is User Experience
Chapter 1. Why Performance Is User Experience
Chapter 2. Measuring What Matters: Essential Metrics for User-Centric Performance
Chapter 3. AI-Generated Code and the Performance Paradox
Part II. Optimizing Web Performance in the Age of AI
Chapter 4. Optimizing AI-Generated Frontends
Chapter 5. Inside the Browser: How Pages Load and Render
Chapter 6. Trade-Offs in Performance Optimizations
Part III. Optimizing JavaScript
Chapter 7. The Cost of JavaScript
Part IV. Managing Dependencies and Maintaining Quality
Chapter 8. Introduction to Third-Party Scripts
Chapter 9. Loading Third-Party Scripts
Chapter 10. Scheduling and Optimizing Third-Party Scripts (and AI’s Role)
Part V. The Future of Web Performance
Chapter 11. Building a Performance Culture
Chapter 12. Web Performance Case Studies and Success Stories
Chapter 13. The Future of Web Performance with AI
From the Preface
On today’s web, the difference between a fluid, delightful experience and a frustrating, abandoned one often comes down to milliseconds. Performance is not just a technical metric; it is the bedrock of user satisfaction and business success. At the same time, AI-assisted tools have changed how we design, build, and ship those experiences. We can now generate production-ready frontends or entire apps in minutes, but their performance characteristics still live in the real constraints of browsers, devices, and networks. Web Performance Engineering in the Age of AI is a comprehensive guide for engineers and technical leaders who need to deliver fast, responsive, and resilient web experiences in this AI-accelerated era. I’m Addy Osmani, an engineering leader on Google Chrome’s web performance team, and in this book I’ve encapsulated the latest techniques, metrics, browser internals, and AI-aware practices that define modern performance work.
Who Should Read This Book?
This book is for frontend developers, web performance engineers, and technical decision-makers who understand the basics of building websites and are driven to create experiences users love by mastering performance optimization. Whether you already lean on tools like Cursor, GitHub Copilot, ChatGPT, Gemini or other LLM-based assistants for day-to-day coding, or are just beginning to bring AI into your workflow, the goal is to help you ship experiences that stay fast and robust regardless of how the code was written. We assume you have some familiarity with HTML, CSS, and JavaScript. From there, we dive deep into the principles and practices required to build and maintain high-performing web applications, including the new realities of AI-generated and AI-augmented code.
Addy Osmani has been an engineering leader at Google for 14 years, improving the developer and user experience for billions of users. Addy is the passionate author of numerous books, including Leading Effective Engineering Teams: Lessons for Individual Contributors and Managers from 10 Years at Google.









