fix(profile): restore lazy image bridge for user modals
This commit is contained in:
@@ -99,11 +99,20 @@ trait ScriptsPart1c {
|
||||
]
|
||||
);
|
||||
|
||||
$lazy_image_attr_path = get_template_directory() . '/assets/js/lazy-image-attr.js';
|
||||
wp_enqueue_script(
|
||||
'aksrt-lazy-image-attr',
|
||||
$base_uri . '/assets/js/lazy-image-attr.js',
|
||||
['loader_js'],
|
||||
file_exists($lazy_image_attr_path) ? (string) filemtime($lazy_image_attr_path) : $version,
|
||||
true
|
||||
);
|
||||
|
||||
// AKSRT-only modules register after the Zibll loader; navigation is owned by main.min.js.
|
||||
wp_enqueue_script(
|
||||
'aksrt-rehydrate',
|
||||
$base_uri . '/assets/js/rehydrate.js',
|
||||
['loader_js'],
|
||||
['loader_js', 'aksrt-lazy-image-attr'],
|
||||
file_exists(get_template_directory() . '/assets/js/rehydrate.js')
|
||||
? (string) filemtime(get_template_directory() . '/assets/js/rehydrate.js')
|
||||
: $version,
|
||||
|
||||
Reference in New Issue
Block a user