File tree 3 files changed +1002
-679
lines changed
3 files changed +1002
-679
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ import SwupFragmentPlugin from '@swup/fragment-plugin';
66
66
Or include the minified production file from a CDN:
67
67
68
68
``` html
69
- <script src =" https://unpkg.com/@swup/fragment-plugin@0 " ></script >
69
+ <script src =" https://unpkg.com/@swup/fragment-plugin@1 " ></script >
70
70
```
71
71
72
72
## How it works
@@ -111,7 +111,7 @@ container.
111
111
</body >
112
112
```
113
113
114
- Using the Fragment Plugin, we can update ** only** the ` #users ` list when clicking one of the filters.
114
+ Using Fragment Plugin, we can update ** only** the ` #users ` list when clicking one of the filters.
115
115
The plugin expects an array of rules to recognize and handle fragment visits:
116
116
117
117
``` js
@@ -270,7 +270,7 @@ Use the `data-swup-fragment-url` attribute to uniquely identify fragment element
270
270
271
271
In scenarios where overlays are rendered on top of other content, leaving or closing the overlay to
272
272
the same URL it was opened from should ideally not update the content below the overlay as
273
- nothing has changed. The fragment plugin will normally do that by keeping track of URLs. However,
273
+ nothing has changed. Fragment plugin will normally do that by keeping track of URLs. However,
274
274
when swup was initialized on a subpage with a visible overlay, the plugin doesn't know which URL
275
275
the overlaid content corresponds to. Hence, we need to tell it manually so it can ignore content
276
276
updates without changes.
You can’t perform that action at this time.
0 commit comments