diff --git a/README.md b/README.md index 859401e..a09303c 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,7 @@ _Pjax does not rely on other libraries, like jQuery or similar. It is written en ## Installation -- You can install Pjax from **npm**: - ```shell - npm install pjax - ``` - -- You can also link directly to the [bundle](https://cdn.jsdelivr.net/npm/pjax/pjax.js): +- You can link directly to the [bundle](https://cdn.jsdelivr.net/npm/pjax/pjax.js): ```html ``` @@ -29,6 +24,17 @@ _Pjax does not rely on other libraries, like jQuery or similar. It is written en ``` +- You can also install Pjax from **npm**: + ```shell + npm install pjax + ``` + **Note**: If you use this option, you will need to do one of the following: + - Link a script tag to either `pjax.js` or `pjax.min.js`. E.g.: + ```html + + ``` + - Use a bundler like Webpack. (`index.js` cannot be used in the browser without a bundler). + --- ## What Pjax Does