Edit on GitHub
Jump to docs navigation

Twig Components / Methods / prefetch

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

prefetch(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, such that the user agent can deliver a faster response once the resource is requested in the future.

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.