Skip to content

Fix small typos #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 @@ -13,7 +13,7 @@ Mainly for 3 reasons
### Scenario 1
You try to load a vendor that pollutes the window with a variable that you need later. say window.analytics.
```js
import loadScript from 'load-external-script'
import loadScript from 'load-external-scripts'

loadScript({ src: 'http://...', id: 'uniqueid' })
.then(/* Contnue with your app */)
Expand All @@ -23,7 +23,7 @@ loadScript({ src: 'http://...', id: 'uniqueid' })
Two instances of the same class try to load the same script, like when you need a vendor for a video and you're supposed to load 2 videos on the same page.

```js
import loadScript from 'load-external-script'
import loadScript from 'load-external-scripts'

Promise.all([
loadScript({ src: 'http://sameurl.com/vendor.js', id: 'sameID' }),
Expand All @@ -36,7 +36,7 @@ Promise.all([
Your vendor is already loaded but 2 minutes later you try to load the same script, so you don't want to duplicate the tag nor actually load it again.

```js
import loadScript from 'load-external-script'
import loadScript from 'load-external-scripts'

loadScript({ src: 'http://sameurl.com/vendor.js', id: 'sameID' }),
setTimeout(function() {
Expand Down