Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
Push scripts and styles early to speed up page loading.
Push scripts and styles early to speed up page loading.
This plugin automatically implements HTTP/2 Server Push for a site's critical assets, primarily targeting developers and site administrators focused on performance optimization. It works by sending Link headers for enqueued scripts and stylesheets, instructing compatible servers to push these resources to the client before they are requested, reducing latency and improving perceived load times.
wp_enqueue_scripts hook, eliminating the need for manual configuration of core assets.<link> elements if headers have already been sent, ensuring compatibility.h2push.push_resources filter allows developers to add other critical assets like fonts, images, or third-party resources to the push list.h2push.is_allowed_push_host filter to define which external domains are permitted for resource pushing, maintaining security and control.h2push.as_header filter lets developers force the use of <link> elements instead of headers, useful for testing or when a server does not support HTTP/2.No comments yet. Be the first to start the conversation!