+ + Initialization +
+
+ By default, shareon will initialize every button after page load.
+ It also exports the shareon
function, that will let
+ you repopulate your buttons with updated information (for example,
+ if you changed the page title):
+
// shareon auto-initializes
+
+window.title = "Cool new window title";
+shareon();
+
+
+ If you want to postpone the initialization, you can import the
+ noinit
-version of the package. You'll need to
+ manually call the shareon
function when you want the
+ buttons to be initialized:
+
<!-- notice the 'noinit' section of the url for JS -->
+<script src="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.js"
+ type="text/javascript"></script>
+<link href="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.css"
+ rel="stylesheet">
+
+<script type="text/javascript">
+ // do something important
+ shareon();
+</script>
+
+ + or, if you're using Node: +
+ +const shareon = require('shareon');
+// or
+import shareon from 'shareon';
+
+// do something important
+shareon();