When I was designing the Dictate Button frontend package, I wanted to make it granular enough to be able to use it in a variety of different scenarios, so I developed a separate Web Component for the button, the installation scripts (aka injectors) and libraries for custom integration.
Because of that granular architecture, the basic installation required importing two scripts (the button component and an injector script):
<script type="module" crossorigin src="https://cdn.dictate-button.io/dictate-button.js"></script>
<script type="module" crossorigin src="https://cdn.dictate-button.io/inject-inclusive.js"></script>
Just recently I realized that it’s so easy to import the component internally right from the injector script to make it a one-liner:
<script type="module" crossorigin src="https://cdn.dictate-button.io/inject-inclusive.js"></script>
Today I’m happy to report that the Dictate Button frontend package, the Dictate Button WordPress plugin and all documentation now reflect the new simplified import method. Enjoy!