- Add local script using a localhost link
<script src="http://localhost:1234/calculator-script.js"></script>
- Add the following HTML to the page as backup when localhost is not available
<script type="text/javascript">
if (typeof parceled === 'undefined') {
const script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://walidmahade.github.io/amply-test-calc/dist/calculator-script.js';
document.body.appendChild(script);
}
</script>