הכלל הזה מופעל כשכלי PageSpeed Insights מזהה שיש לכם יותר מהפניה אחת מכתובת ה-URL הנתונה אל דף הנחיתה הסופי.
סקירה כללית
הפניות אוטומטיות מפעילות מחזור נוסף של בקשת תגובה ב-HTTP ומעכבות את עיבוד הדף. במקרה הטוב ביותר, בכל הפניה תתווסף המרה יחידה (הפנייה-תשובה של HTTP), ובמקרה הגרוע ביותר, ייווצרו כמה פעולות דו-כיווניות נוספות לביצוע חיפוש DNS, לחיצת יד של TCP ומשא ומתן ב-TLS, בנוסף למחזור הנוסף של בקשת תגובה של HTTP. כתוצאה מכך, עליך לצמצם את השימוש בהפניות מחדש כדי לשפר את ביצועי האתר.
הנה כמה דוגמאות של דפוסי הפניה:
example.com משתמש בעיצוב אתר רספונסיבי, אין צורך בהפניות אוטומטיות - מהיר ואופטימלי!
example.com ← m.example.com/home - עונש מרובה-הלוך ושוב עבור משתמשים בנייד.
example.com ← www.example.com ← m.example.com - חוויית שימוש איטית מאוד בנייד.
[null,null,["עדכון אחרון: 2024-09-04 (שעון UTC)."],[[["This PageSpeed Insights rule flags pages with multiple redirects, as they negatively impact performance by adding extra HTTP request-response cycles and delaying page rendering."],["Redirects can significantly slow down a website, especially on mobile devices, by introducing additional roundtrips for DNS lookups, TCP handshakes, and TLS negotiations."],["Responsive web design is recommended to avoid redirects and provide a seamless multi-device experience."],["If redirects are necessary, follow guidelines for proper implementation and user-agent detection."],["This documentation refers to a deprecated version of the PageSpeed Insights API; the latest version (v5) offers real-world and lab data for more comprehensive insights."]]],["The content explains that multiple redirects slow down page rendering due to added HTTP request-response cycles and potential DNS lookups, TCP handshakes, and TLS negotiations. It recommends minimizing redirects and using responsive design to avoid them. When redirects are required, users should consult guidelines on redirects and user-agent detection. The document also notes that PageSpeed Insights version 4 is deprecated, and version 5 should be used instead. Lastly, it guides users to Stack Overflow and a mailing list for feedback.\n"]]