From c7fc4fc08c20758037d009d5e91c4b438c79c764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 9 Sep 2014 16:20:26 -0700 Subject: [PATCH 1/2] Fix curl download instructions curl needs to follow redirects in order to fetch the raw file. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24ff323e..8df0c8b1 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ Or add `jquery-pjax` to your apps `bower.json`. pjax can be downloaded directly into your app's public directory - just be sure you've loaded jQuery first. ``` -curl -O https://raw.github.com/defunkt/jquery-pjax/master/jquery.pjax.js +curl -LO https://raw.github.com/defunkt/jquery-pjax/master/jquery.pjax.js ``` **WARNING** Do not hotlink the raw script url. GitHub is not a CDN. From ab71fedf37de344ef511c11860c5854dbfc597c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 9 Sep 2014 16:20:55 -0700 Subject: [PATCH 2/2] Improve pjax function synopsis and :memo: the options --- README.md | 41 ++++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8df0c8b1..9db73358 100644 --- a/README.md +++ b/README.md @@ -136,16 +136,40 @@ Or try this selector that matches any `` links inside a `