يتم تشغيل هذه القاعدة عندما يكتشف PageSpeed Insights أن لديك أكثر من عملية إعادة توجيه من عنوان URL المعني إلى الصفحة المقصودة النهائية.
نظرة عامة
تؤدي عمليات إعادة التوجيه إلى تشغيل دورة طلب واستجابة HTTP إضافية وتأخير عرض الصفحة. وفي أفضل الحالات، ستضيف كل عملية إعادة توجيه رحلة ذهاب وعودة واحدة (استجابة طلب HTTP)، وفي أسوأ ذلك، قد ينتج عن ذلك جولات ذهاب وعودة إضافية متعددة لإجراء بحث نظام أسماء النطاقات وتأكيد اتصال بروتوكول التحكم بالنقل وتفاوض بروتوكول أمان طبقة النقل (TLS) بالإضافة إلى دورة استجابة طلب HTTP الإضافية. ونتيجةً لذلك، عليك تقليل استخدام عمليات إعادة التوجيه لتحسين أداء الموقع الإلكتروني.
في ما يلي بعض الأمثلة على أنماط إعادة التوجيه:
يستخدم example.com تصميم ويب سريع الاستجابة، ولا حاجة إلى عمليات إعادة التوجيه، فهي سريعة ومثالية.
example.com ← m.example.com/home - عقوبة على الرسائل ذهابًا وإيابًا لمستخدمي الأجهزة الجوّالة.
example.com ← www.example.com ← m.example.com - تجربة جوّال بطيئة جدًا.
اقتراحات
تعرَّف على أساسيات التصميم سريع الاستجابة لتقديم تجربة رائعة على أجهزة متعددة والتخلص من عمليات إعادة التوجيه غير الضرورية.
تاريخ التعديل الأخير: 2024-09-04 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]