File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
<img src =" https://cloud.githubusercontent.com/assets/835857/14581711/ba623018-0436-11e6-8fce-d2ccd4d379c9.gif " >
3
3
</p >
4
4
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 )
6
6
7
7
A simple, lightweight JavaScript API for handling cookies
8
8
@@ -34,6 +34,12 @@ Download the script [here](https://github.com/js-cookie/js-cookie/blob/latest/sr
34
34
<script src =" /path/to/js.cookie.js" ></script >
35
35
```
36
36
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
+
37
43
** 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
38
44
in Internet Explorer on Windows 7 for instance (because of the wrong MIME type). Bottom line: GitHub is not a CDN.
39
45
You can’t perform that action at this time.
0 commit comments