Hi Olga
I did what I could to try to isolate the problem 🙂
I ended up isolating folders and files and I found the problem.
It is in the file /xstore/theme/theme-setup.php
These lines have been included and they cause the flurry of errors when using defer in wprocket or theme functions. The swap images do not appear, nor do the sliders spin.
// Remove query string from static files
function remove_cssjs_ver ($ src) {
// Do not do it for revslider and essential-grid.
if (strpos ($ src, ‘revslider’) || strpos ($ src, ‘essential-grid’)) return esc_url ($ src);
if (strpos ($ src, ‘? ver =’))
$ src = remove_query_arg (‘view’, $ src);
return esc_url ($ src);
}
add_filter (‘style_loader_src’, ‘remove_cssjs_ver’, 10, 2);
add_filter (‘script_loader_src’, ‘remove_cssjs_ver’, 10, 2);
}
}
So now I’m running with theme 4.28.1 and this file left the 4.27 and everything works perfectly on PHP 7.2.7 🙂
Perhaps it would be better to leave each option to the user.
Regards
Rudimar