Skip to content

Commit d131653

Browse files
author
Vic Shóstak
authored
Update README.md
1 parent 825d54d commit d131653

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# goodshare.js
44

5-
![npm version](https://badge.fury.io/js/goodshare.js.svg) [![gzip](https://img.shields.io/badge/GZip_size-4.1_KB-green.svg?style=flat)](https://en.wikipedia.org/wiki/ECMAScript) [![jsDelivr download](https://data.jsdelivr.com/v1/package/npm/goodshare.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/goodshare.js) [![js es6](https://img.shields.io/badge/ECMAScript-6+-blue.svg?style=flat)](https://en.wikipedia.org/wiki/ECMAScript) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat)](https://github.com/prettier/prettier) [![license](https://img.shields.io/badge/license-MIT-yellow.svg?style=flat)](https://github.com/koddr/vue-goodshare/blob/master/LICENSE)
5+
![npm version](https://badge.fury.io/js/goodshare.js.svg) [![gzip](https://img.shields.io/badge/GZip_size-2.56_KB-green.svg?style=flat)](https://en.wikipedia.org/wiki/ECMAScript) [![jsDelivr download](https://data.jsdelivr.com/v1/package/npm/goodshare.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/goodshare.js) [![js es6](https://img.shields.io/badge/ECMAScript-6+-blue.svg?style=flat)](https://en.wikipedia.org/wiki/ECMAScript) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat)](https://github.com/prettier/prettier) [![license](https://img.shields.io/badge/license-MIT-yellow.svg?style=flat)](https://github.com/koddr/vue-goodshare/blob/master/LICENSE)
66

77

88
> Useful ~~jQuery plugin~~ modern JavaScript solution for share a link from your website to social networks or mobile messengers. Easy to install and configuring on any of your website!
@@ -117,6 +117,25 @@ window._goodshare.setShareCallback(function() {
117117
});
118118
```
119119

120+
## Size limit report
121+
122+
```console
123+
foo@bar:~$ npm run size
124+
125+
✨ Built in 362ms.
126+
127+
dist/goodshare.js.map 137.98 KB 35ms
128+
dist/goodshare.js 89.42 KB 118ms
129+
130+
Time limit: 250 ms
131+
Package size: 2.56 KB with all dependencies, minified and gzipped
132+
Loading time: 52 ms on slow 3G
133+
Running time: 190 ms on Snapdragon 410
134+
Total time: 241 ms
135+
```
136+
137+
_Thanks to Andrey Sitnik [@ai/size-limit](https://github.com/ai/size-limit)._
138+
120139
### Notes
121140

122141
- **No more depending on jQuery!** Since `4.x`, no longer support the old `goodshare.js` version ([3.2.9](https://github.com/koddr/goodshare.js/tree/3.2.9) and lower). Thank you jQuery, but ES6 is better and cleaner.
@@ -126,6 +145,7 @@ window._goodshare.setShareCallback(function() {
126145
- **No need to separated polyfills.** Since `6.0.2`, `goodshare.js` drop `./goodshare.polyfill.min.js` and separated [Array Polyfill](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/from?v=control#Polyfill) from `./src/polyfills`.
127146
- **Browser support (2019).** Since `6.0.3`, `goodshare.js` only support: MSIE 11+, Edge 13+, Google Chrome 59+ and FireFox 50+.
128147
- **Add/Switch/Delete.** Since `6.1.0`, `goodshare.js` added Flipboard and WeChat; switch StumbleUpon to Mix; deleted GooglePlus.
148+
- **Add Size limit.** Since `6.1.2`, `goodshare.js` pushed to master only if limit `250 ms` is passed. And switched to [Parcel](https://github.com/parcel-bundler/parcel) bundler.
129149

130150
### Author & maintainers
131151

0 commit comments

Comments
 (0)