Edit on GitHub
Jump to docs navigation

Twig Components / Methods / prerender

Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?

prerender(uri, attributes = []) is a Twig function to identify a resource that might be required by the next navigation, and that the user agent should fetch and execute, such that the user agent can deliver a faster response once the resource is requested later.

Source: Symfony



Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.