Carregando o plugin no navegador
Carregando o plugin sob demanda.
html
<script src="path/to/dayjs/plugin/advancedFormat"></script>
<!-- Carregue o plugin como window.dayjs_plugin_NAME -->
<script>
dayjs.extend(window.dayjs_plugin_advancedFormat);
</script>
O Day.js está disponível via CDN.
html
<!-- Exemplo de uso do CDN (jsDelivr) -->
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script>
<script>
dayjs.extend(window.dayjs_plugin_utc);
</script>