Release 4.1.0
Introduces a two-layer lazy loading system and fixes duplicate lazy content loading.
View full changelog
Changed
- Use
data-airfleet-srcanddata-airfleet-typeattributes instead ofdata-srcanddata-typefor consistency with global lazy loading system - Implemented two-layer lazy loading system: plugin-specific layer using form-specific types (
airfleetlazyloadformscript/airfleetlazyloadformiframe) whenloading='lazy', and theme-level layer using global types (airfleetlazyloadscript/airfleetlazyloadiframe) whendelay_scriptsoption is enabled - Improved error handling in
LazyLoader::loadScript()to resolve instead of reject on errors
Fixed
- Fixed duplicate lazy content loading by adding WeakSet tracking in
form-postcomponent to prevent multiple transformations of the same form