cookies_addons_fields uses AJAX to load content after cookie consent, causing delays and inconsistent UX
compared to cookies_video which uses immediate DOM manipulation.
1. Configure field blocking for video service
2. Accept cookies and observe loading delay
3. Compare with cookies_video (immediate display)
Use the same DOM manipulation pattern as cookies_video:
- Keep field content in DOM but mark as blocked
- Show/hide via JavaScript immediately when consent changes
- Remove AJAX controller and endpoint
Benefits: immediate response, simpler code, consistent UX.
- [ ] Refactor JavaScript to match cookies_video pattern
- [ ] Update PHP to keep content and use blocking classes
- [ ] Remove AJAX controller and routing
- [ ] Test immediate content display
Immediate content display when accepting cookies (no loading delay).
Remove AJAX endpoint `/cookies-addons-fields/get-field/` and CookiesAddonsFieldsController.
None.
Active
1.3
Code