Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
c-kick authored Sep 27, 2024
1 parent e4d2c4f commit d0249c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ So, instead of writing JavaScript that waits for a page load, traverses the DOM

## Example

In HTML, just specify:
After following the [instructions for use](#instructions-for-use), you can just specify in your HTML:

```HTML
<div data-requires="doSomeAjaxStuff.mjs">Loading...</div>
```
And then, inside `doSomeAjaxStuff.mjs`, all you need to write is:
And then, inside your `doSomeAjaxStuff.mjs`, all you need to write is:

```JavaScript
export function init(elements){
Expand Down

0 comments on commit d0249c6

Please sign in to comment.