From 493d56c2d02daa4e8a104d1fb0f27db0ede7a987 Mon Sep 17 00:00:00 2001
From: BehindTheMath <9314934+BehindTheMath@users.noreply.github.com>
Date: Sun, 3 Mar 2019 01:45:34 -0500
Subject: [PATCH] Update README (#199)
* Move the npm installation option to last.
* Clarify that index.js is not a bundle
---
README.md | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
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