0

Recently I was charting live data from simatic s7-1200 plc kit. This plc has a limitation where it only supports 60 KB js files. Is there any link or suggestions where i can get chart.js and jquery-3.1.0.js files which will be under 60KB. Thanks in advance.

ZF007
  • 3,708
  • 8
  • 29
  • 48

1 Answers1

0

If you really need small files of jQuery and Chart.js libraries, here's solution:

jQuery:

You have to get slim minified version of jQuery Core, and additionally gzip it via appropriate tools (gzip command can be used in *nix terminal).

If gzip is not accepted by pls than you can try to use older versions (some of the are below 60KB) or even Zepto.js package instead of jQuery - the main difference is library file size (way below 60KB).

Chart.js:

You can as well try to serve it gzipped, but if you can't, then try to use older version. You can include this version - old, but below limitation and it supports 6 basic chart types.


There are also a workaround, if you can use CDN.

Damaged Organic
  • 8,175
  • 6
  • 58
  • 84