Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.0 #69

Merged
merged 6 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import SwupFragmentPlugin from '@swup/fragment-plugin';
Or include the minified production file from a CDN:

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

## How it works
Expand Down Expand Up @@ -111,7 +111,7 @@ container.
</body>
```

Using the Fragment Plugin, we can update **only** the `#users` list when clicking one of the filters.
Using Fragment Plugin, we can update **only** the `#users` list when clicking one of the filters.
The plugin expects an array of rules to recognize and handle fragment visits:

```js
Expand Down Expand Up @@ -270,7 +270,7 @@ Use the `data-swup-fragment-url` attribute to uniquely identify fragment element

In scenarios where overlays are rendered on top of other content, leaving or closing the overlay to
the same URL it was opened from should ideally not update the content below the overlay as
nothing has changed. The fragment plugin will normally do that by keeping track of URLs. However,
nothing has changed. Fragment plugin will normally do that by keeping track of URLs. However,
when swup was initialized on a subpage with a visible overlay, the plugin doesn't know which URL
the overlaid content corresponds to. Hence, we need to tell it manually so it can ignore content
updates without changes.
Expand Down
Loading
Loading