This plugin deep fetches resources during prefetching based on CSS selectors.
** Example **
import DeepFetchPlugin from '@edgio/prefetch/sw/DeepFetchPlugin' import { Prefetcher } from '@edgio/prefetch/sw' new Prefetcher({ plugins: [ new DeepFetchPlugin([ { selector: 'img.product-main-image, maxMatches: 1, as: 'image', attribute: 'src' } ]) ] })
WorkboxPlugin method called every time a fetch succeeds.
Generated using TypeDoc
This plugin deep fetches resources during prefetching based on CSS selectors.
** Example **