Это правило срабатывает, когда 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-10-30 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"]]