This option determines which DOM elements are considered for preloading. selector is the HTML selector that we're
scanning for and attribute is the attribute on the element that contains the URL to preload.
You can add multiple selector/attribute combinations.
Defaults to [{ selector: 'a', attribute: 'href' }].
This option determines which DOM elements are considered for preloading.
selector
is the HTML selector that we're scanning for andattribute
is the attribute on the element that contains the URL to preload.You can add multiple selector/attribute combinations.
Defaults to
[{ selector: 'a', attribute: 'href' }]
.