diff --git a/.jules/bolt.md b/.jules/bolt.md index b08b203a..9dea3d7d 100644 --- a/.jules/bolt.md +++ b/.jules/bolt.md @@ -4,3 +4,6 @@ ## 2026-07-12 - Optimize renderTaskRow DOM allocations **Learning:** Caching unattached template nodes and instantiating them via `.cloneNode(false)` reduces DOM instantiation overhead in O(N) render loops significantly. **Action:** Apply this optimization to other hot-path rendering elements such as rows, cells, and stack containers. +## 2026-08-31 - Optimize preload and modulepreload hints +**Learning:** Placing a `` for a stylesheet immediately before its actual `` tag is redundant and provides no benefit, as modern browser preload scanners will detect both simultaneously. Valid resource hinting optimizations include using `` for scripts located at the bottom of the ``. +**Action:** Remove redundant ``, and ensure all JS modules loaded have ``, like `cloud-sync.js` and `analytics.js`. diff --git a/index.html b/index.html index d24b2a88..ff19af3c 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,9 @@ ScopeWeave Planner - + + + diff --git a/tests/e2e/mobile_resolution.spec.js b/tests/e2e/mobile_resolution.spec.js new file mode 100644 index 00000000..5ed0117d --- /dev/null +++ b/tests/e2e/mobile_resolution.spec.js @@ -0,0 +1,12 @@ +import { test, expect } from '@playwright/test'; + +test.use({ + viewport: { width: 375, height: 667 }, + isMobile: true, + hasTouch: true, +}); + +test('Mobile Resolution Testing', async ({ page }) => { + await page.goto('./'); + await expect(page.locator('tbody tr[data-task-id]')).toHaveCount(4); +});