File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 22 <img src =" https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif " >
33</p >
44
5- # JavaScript Cookie [ ![ Build Status] ( https://travis-ci.org/js-cookie/js-cookie.svg?branch=master )] ( https://travis-ci.org/js-cookie/js-cookie ) [ ![ Code Climate] ( https://codeclimate.com/github/js-cookie/js-cookie.svg )] ( https://codeclimate.com/github/js-cookie/js-cookie )
5+ # JavaScript Cookie [ ![ Build Status] ( https://travis-ci.org/js-cookie/js-cookie.svg?branch=master )] ( https://travis-ci.org/js-cookie/js-cookie ) [ ![ Code Climate] ( https://codeclimate.com/github/js-cookie/js-cookie.svg )] ( https://codeclimate.com/github/js-cookie/js-cookie ) [ ![ jsDelivr Hits ] ( https://data.jsdelivr.com/v1/package/npm/js-cookie/badge?style=rounded )] ( https://www.jsdelivr.com/package/npm/js-cookie )
66
77A simple, lightweight JavaScript API for handling cookies
88
@@ -34,6 +34,12 @@ Download the script [here](https://github.com/js-cookie/js-cookie/blob/latest/sr
3434<script src =" /path/to/js.cookie.js" ></script >
3535```
3636
37+ Or include it via [ jsDelivr CDN] ( https://www.jsdelivr.com/package/npm/js-cookie ) :
38+
39+ ``` html
40+ <script src =" https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js" ></script >
41+ ```
42+
3743** Do not include the script directly from GitHub (http://raw.github.com/ ...).** The file is being served as text/plain and as such being blocked
3844in Internet Explorer on Windows 7 for instance (because of the wrong MIME type). Bottom line: GitHub is not a CDN.
3945
You can’t perform that action at this time.
0 commit comments