Comparing version 1.7.9 to 1.7.10
{ | ||
"name": "swup", | ||
"version": "1.7.9", | ||
"version": "1.7.10", | ||
"description": "Complete, flexible, easy to use page transition library.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -193,3 +193,3 @@ # swup | ||
If cache is disabled, swup still preloads pages on hovered links, but the content of cache is removed after each page transition. | ||
In case you want to preload some page automatically without any trigger by the user, `data-swup-preload` on the link will do the trick. | ||
In case you want to preload some page automatically without any trigger by the user, `data-swup-preload` on the link will do the trick. By default, preload is set to `true`. | ||
```javascript | ||
@@ -244,3 +244,3 @@ preload: true | ||
Swup instance is also accessible globally as `window.swup` in debug mode. Option defaults to false. | ||
```javasrripts | ||
```javascript | ||
debugMode: false | ||
@@ -269,3 +269,3 @@ ``` | ||
This means that position of scroll on previous page(s) is not preserved (but [can be implemented manually](https://github.com/gmrchk/swup/issues/48#issuecomment-423854819) based on use case). | ||
Otherwise swup scrolls to top/#element on popstate as it does with normal browsing. | ||
Otherwise swup scrolls to top/#element on popstate as it does with normal browsing. Default value is `false`. | ||
```javascript | ||
@@ -272,0 +272,0 @@ animateHistoryBrowsing: false |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175755