Load pdf libs when needed (#1902)

* feat: only load pdf-lib when its used

* feat: only load pdfjs when its used
This commit is contained in:
Eric
2024-09-15 00:24:04 -07:00
committed by GitHub
parent d389b5e2f3
commit c6c33d611a
12 changed files with 17 additions and 10 deletions

View File

@@ -28,6 +28,7 @@
</div>
<th:block th:insert="~{fragments/footer.html :: footer}"></th:block>
</div>
<script th:src="@{'/js/thirdParty/pdf-lib.min.js'}"></script>
<script th:src="@{'/js/local-pdf-input-download.js'}"></script>
<script>
document.getElementById('pdfForm').addEventListener('submit', async (e) => {