Using the Minified Version of Pipe.js
Pipe.js
The minified version, pipe.min.js, is a more compact version of our 2.0 embed code pipe.js. It is smaller, so it will load faster for your website users. This is especially helpful for users with a slow Internet connection.
As I write this, the non-minified version of pipe.js is 116 KB (after gzip compression), and the minified version is 79.2 KB (roughly 32% smaller).
The functionality remains the same, but with the added benefits of a smaller JavaScript file.
To switch to the minified version simply replace pipe.min.js with pipe.min.js in the src attribute of your <script> tag:
- when loading from our AWS powered worldwide CDN:
<script type="text/javascript" src="https://cdn.addpipe.com/2.0/pipe.min.js"></script>
- when loading directly from our EU delivery servers:
<script type="text/javascript" src="https://s1.addpipe.com/2.0/pipe.min.js"></script>
Pipe.css
The same is true for our stylesheet. The minified version, pipe.min.css, is a more compact version of pipe.css. The styling remains the same, but the file is smaller.
As I write this, the non-minified version of pipe.css is 5.5 KB (after gzip compression), and the minified version is 4.5 KB (roughly 20% smaller).
To switch to the minified stylesheet simply replace pipe.min.css with pipe.min.css in the href attribute of your <link> tag:
- when loading from our AWS powered worldwide CDN:
<link rel="stylesheet" href="https://cdn.addpipe.com/2.0/pipe.min.css">
- when loading directly from our EU delivery servers:
<link rel="stylesheet" href="https://s1.addpipe.com/2.0/pipe.min.css">