הימנעות מבקשות לצוואר בקבוק
סקירה
הביקורת הזו מזהה בקשות מתמשכות שחוסמות את הבקשה הראשונה להצגת מודעה. אלו בקשות שהופעלו וגם קיבלו תשובה לפני שהבקשה הראשונה להצגת מודעה נשלחה. אם מצמצמים את מספר הבקשות לחסימות ואת משך הזמן שלהן, אפשר לקצר את זמן האחזור של הבקשה הראשונה להצגת מודעה ולהאיץ את טעינת המודעות.
המלצות
הפרטים של הביקורת הזו כוללים את 5 בקשות החסימה המובילות (לפי עלות). המטרה כאן היא להסיר את הבקשות האלו או לקצר אותן כדי לזרז את טעינת המודעות. לשם כך, מומלץ:
- ביטול בקשות מיותרות.
- דחיית בקשות לא קריטיות עד שהמודעות נטענות.
- הנפקת בקשות במקביל ולא באופן סדרתי.
- שיפור זמני התגובה באמצעות אופטימיזציה של שירותים לקצה העורפי, באמצעות HTTP/2 וכו'.
הביקורת מציגה את 5 הבקשות המובילות לצוואר בקבוק, לפי עלות. עלות הבקשה מחושבת כך:
request duration + (request self-time * 3)
כאשר הזמן העצמי של בקשה שווה למשך הזמן של פחות הזמן שנחסם על ידי בקשות אחרות. נלקחות בחשבון רק בקשות עם זמן עצמי של יותר מ-250 אלפיות שנייה או שמשך הזמן שלהן גדול משנייה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-06-26 (שעון UTC).
[null,null,["עדכון אחרון: 2024-06-26 (שעון UTC)."],[[["This audit focuses on identifying and mitigating long-running requests that delay the initial ad request, ultimately hindering ad loading speed."],["By reducing or removing these \"blocking requests,\" publishers can significantly improve the latency of their first ad request."],["Optimization strategies include eliminating unnecessary requests, deferring non-critical requests, parallelizing request execution, and enhancing backend service response times."],["The audit highlights the top 5 most impactful blocking requests based on a calculated \"cost\" that factors in request duration and self-time."],["Requests with self-times exceeding 250ms or durations longer than 1s are flagged for potential optimization to improve ad loading performance."]]],["The audit identifies long-running requests that delay the first ad request. It highlights the top five blocking requests based on their calculated cost. Actions to reduce delays include eliminating or deferring non-critical requests, issuing requests in parallel, and improving response times. The cost of a request is its duration plus three times its self-time (duration minus blocked time). Only requests with self-time above 250ms or duration above 1s are considered.\n"]]