Closed kytta closed 4 years ago
original PR: #13 by @amiceli
This PR adds the possibility to postpone auto-init of shareon and/or re-run it (see also #11).
<!-- load the version without auto-init --> <script src=".../shareon.noinit.min.js"></script>
// init when needed if (timeToInitShareon) { shareon(); }
The no-init workflow could also be the default for CommonJS/ESM versions:
import shareon from 'shareon'; if (timeToInitShareon) { shareon(); }
This PR adds the possibility to postpone auto-init of shareon and/or re-run it (see also #11).
Showcase
The no-init workflow could also be the default for CommonJS/ESM versions: