CoreBoost v3.2.1
馃悰 Fixed - Delay JavaScript Bugs
Favicon Not Displaying with Delay JS Enabled
- Fixed favicon not appearing in browser tab when Delay JavaScript feature is enabled
- Root cause: The delay loader script executed immediately on page load, keeping the browser main thread busy and causing browsers to deprioritize low-priority resources like favicons
- Solution: Added
deferattribute to the delay loader script, allowing favicons to be discovered and queued during HTML parsing before the script executes
Delay JS Settings UI Issues
-
Fixed "Use Default Exclusions" checkbox not staying checked after saving settings
- Disabled checkboxes don't submit form data, causing the value to reset to
false - Now preserves existing value when parent
enable_delay_jsis disabled - Defaults to
truefor new installations as intended
- Disabled checkboxes don't submit form data, causing the value to reset to
-
Fixed inability to edit Delay JS options until saving
- Added JavaScript to dynamically enable/disable Delay JS fields when the main checkbox is toggled
- Users can now immediately configure options after enabling Delay JS without saving first
- Custom delay field properly enables only when both Delay JS is on AND custom trigger is selected
Files Modified
includes/public/class-delay-js-optimizer.php- Addeddeferattribute to delay loader script tagincludes/admin/class-advanced-optimization-settings.php- Fixed sanitization to preserve checkbox defaultsassets/admin.js- AddedinitDelayJsToggle()function for dynamic field state management