feat: smooth same-origin page changes
Cache versioned styles, images, and scripts so repeat clicks do not wait on them, crossfade navigations while the chrome stays put, and prefetch ordinary links on hover.
This commit is contained in:
1 parent
5e0e4a55a8
commit
747e6e25e0
8 files changed
+236
-36
No files matched your search
+1
-1
@@ -327,7 +327,7 @@ describe('coordinator screens', () => {
|
||||
const page = await app.request(`/admin/shifts/${shiftId}`, { headers: { cookie } });
|
||||
const html = await page.text();
|
||||
expect(html).toContain('Add a walk-in');
|
||||
expect(html).toContain('src="/js/enhance.js"');
|
||||
expect(html).toContain('src="/js/enhance.js?v=');
|
||||
expect(html).toContain('data-under-18');
|
||||
expect(html).toContain('data-guardian');
|
||||
expect(html).not.toMatch(/id="walkin-under-18"[^>]*\schecked/);
|
||||
|
||||
Reference in new issue
Block a user