Skip to content

Commit c27a09e

Browse files
author
Your Name
committed
Preload jsPDF in background to speed up PDF export
1 parent 5bc2834 commit c27a09e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h4>Pending UPI payments <span id="pendingCount" class="pending-badge">0</span><
9292
</main>
9393

9494
<div id="modalRoot"></div>
95-
<footer>New Serchhip North Village Council · v1.29.11</footer>
95+
<footer>New Serchhip North Village Council · v1.29.11</footer>
9696

9797
<script type="module">
9898
/* ============================================================
@@ -1068,6 +1068,9 @@ <h4>Pending UPI payments <span id="pendingCount" class="pending-badge">0</span><
10681068
}
10691069
store.onAuth(onAuth);
10701070

1071+
// Preload PDF library in the background so export is instant when clicked.
1072+
setTimeout(()=>{ ensureJsPDF().catch(()=>{}); }, 4000);
1073+
10711074
let consecutiveErrors = 0;
10721075
let connectionWarningShown = false;
10731076
function handleOperationError(operation, error){

sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// install/activate a fresh worker. If it's left stale, already-installed
44
// PWAs keep serving whatever was cached under the old name indefinitely
55
// (this has silently happened before: see the v1.25.6 and v1.28.0 fixes).
6-
const CACHE_NAME = 'nsnvc-tracker-v1.29.11';
6+
const CACHE_NAME = 'nsnvc-tracker-v1.29.11';
77
const urlsToCache = [
88
'./',
99
'./index.html',

0 commit comments

Comments
 (0)