Skip to content

Commit

Permalink
feat: Update jQuery 😆 (#82)
Browse files Browse the repository at this point in the history
Newewr version; Minified one; Https only
  • Loading branch information
tomek-f authored Feb 6, 2024
1 parent 4db5578 commit d1706a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import simpleLoadScript from 'simple-load-script';

try {
const scriptRef = await simpleLoadScript(
'//code.jquery.com/jquery-2.2.3.js',
'https://code.jquery.com/jquery-3.7.1.min.js',
);

console.log(scriptRef); // HTMLScriptElement
Expand All @@ -25,7 +25,7 @@ try {
```js
import simpleLoadScript from 'simple-load-script';

simpleLoadScript('//code.jquery.com/jquery-2.2.3.js')
simpleLoadScript('https://code.jquery.com/jquery-3.7.1.min.js')
.then(function (scriptRef) {
console.log(scriptRef); // HTMLScriptElement
})
Expand All @@ -41,7 +41,7 @@ import simpleLoadScript from 'simple-load-script';

try {
const scriptRef = await simpleLoadScript({
url: '//code.jquery.com/jquery-2.2.3.js',
url: 'https://code.jquery.com/jquery-3.7.1.min.js',
inBody: true,
attrs: { id: 'one', charset: 'UTF-8' },
});
Expand Down Expand Up @@ -101,7 +101,7 @@ try {
url: '//api.ipinfodb.com/v3/ip-city/?format=json&callback=elo',
removeScript: true,
},
'//code.jquery.com/jquery-2.2.3.js',
'https://code.jquery.com/jquery-3.7.1.min.js',
]);

console.log(scriptRefs); // HTMLScriptElement[]
Expand Down

0 comments on commit d1706a2

Please sign in to comment.