Skip to content

Commit 72be62a

Browse files
authored
Merge pull request #69 from swup/feat/v1
Version 1.0.0
2 parents 13b6809 + 5804ed1 commit 72be62a

File tree

3 files changed

+1002
-679
lines changed

3 files changed

+1002
-679
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import SwupFragmentPlugin from '@swup/fragment-plugin';
6666
Or include the minified production file from a CDN:
6767

6868
```html
69-
<script src="https://unpkg.com/@swup/fragment-plugin@0"></script>
69+
<script src="https://unpkg.com/@swup/fragment-plugin@1"></script>
7070
```
7171

7272
## How it works
@@ -111,7 +111,7 @@ container.
111111
</body>
112112
```
113113

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.
115115
The plugin expects an array of rules to recognize and handle fragment visits:
116116

117117
```js
@@ -270,7 +270,7 @@ Use the `data-swup-fragment-url` attribute to uniquely identify fragment element
270270

271271
In scenarios where overlays are rendered on top of other content, leaving or closing the overlay to
272272
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,
274274
when swup was initialized on a subpage with a visible overlay, the plugin doesn't know which URL
275275
the overlaid content corresponds to. Hence, we need to tell it manually so it can ignore content
276276
updates without changes.

0 commit comments

Comments
 (0)