swup / preload-plugin

A swup plugin for preloading pages to speed up navigation 🚀
https://swup.js.org/plugins/preload-plugin
MIT License
14 stars 14 forks source link

Resolve with page data #32

Closed daun closed 2 years ago

daun commented 2 years ago

Similar to #484 in core, resolve the XHR promise directly instead of using the cache for the intermediate step, removing unnecessary dependencies. Also removes the second argument to the call of cacheUrl which doesn't have a second argument.