stefanpenner / es6-promise

A polyfill for ES6-style Promises
MIT License
7.3k stars 593 forks source link

Is it required to include both scripts in html page? #357

Open dehghani-mehdi opened 4 years ago

dehghani-mehdi commented 4 years ago
<!-- Automatically provides/replaces `Promise` if missing or broken. -->
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.js"></script>
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script> 

<!-- Minified version of `es6-promise-auto` below. -->
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js"></script> 
yairEO commented 4 years ago

I also don't understand from the README what is the difference. very poor explanation:

Automatically provides/replaces Promise if missing or broken.

That is the whole essence of a polyfill...of course this is what it does, question is what does "auto" means...since every polyfill is obviously "auto" and only applies if internally detected it should apply.

danielocdh commented 3 years ago

What I found out testing a jsPDF page with IE and looking at the code: