Skip to content

Commit

Permalink
Update lazy-load.md (#2826)
Browse files Browse the repository at this point in the history
fixed double-spacing issue in example
  • Loading branch information
AaronCTech authored Aug 19, 2024
1 parent 91901e3 commit 2472bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/content/examples/lazy-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ state that looks like this:

```html
<div hx-get="/graph" hx-trigger="load">
<img alt="Result loading..." class="htmx-indicator" width="150" src="/img/bars.svg"/>
<img alt="Result loading..." class="htmx-indicator" width="150" src="/img/bars.svg"/>
</div>
```

Expand Down Expand Up @@ -54,7 +54,7 @@ img {
// templates
function lazyTemplate(page) {
return `<div hx-get="/graph" hx-trigger="load">
<img alt="Result loading..." class="htmx-indicator" width="150" src="/img/bars.svg"/>
<img alt="Result loading..." class="htmx-indicator" width="150" src="/img/bars.svg"/>
</div>`;
}
</script>

0 comments on commit 2472bca

Please sign in to comment.