swup / preload-plugin

A swup plugin for preloading pages to speed up navigation 🚀

Home Page:https://swup.js.org/plugins/preload-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`options.preloadVisibleLinks.enabled` not being applied automatically

hirasso opened this issue · comments

Description of the issue

IMO it's save to assume that initializing preload plugin like this:

new SwupPreloadPlugin({
	preloadVisibleLinks: {
		delay: 0,
	},
})

...should automatically set preloadVisibleLinks.enabled to true. The plugin docs also suggest that behavior.

This is not the case right now. What's your opinion here @daun ?

Before creating this issue...

  • Have you provided all helpful information available?
  • Have you checked closed issues for similar/related problems?

That should definitely work, I agree! Feel free to open a PR that fixes it, otherwise I might get to it later this week.