prefetchPageResources( )


Optimizes resource fetching of pages and lightboxes in a site so they'll load faster.

Use the prefetchPageResources() method to optimize resource fetching of pages and lightboxes a site's visitors are likely to visit next. When a site visitor navigates to those pages or lightboxes, they'll load quicker than usual since some of their resources have already been retrieved.

You can only prefetch resources from pages or lightboxes within the current site.

A prefetch is considered successful if the specified pages and lightboxes exist in the current site. If any of the specified pages or lightboxes do not exist, the prefetch operation returns an error status and lists of the pages and lightboxes that were not found.

Method Declaration
Copy
Method Parameters
prefetchItemsPrefetchItemsRequired

The items within the site to prefetch resources for.

Returns
Return Type:PrefetchResult
Did this help?