Autoptimize and Divi issues

When using autoptimize with Divi sometimes there are issues with the animations. As with anything custom code it is necessary to add some code to the functions.php file. Add the following code right at the bottom before the closing ?> tag or generally after the parent cations are completed.
Making Divi Animations Work when using Autoptimize
add_filter('autoptimize_filter_js_defer','sw_override_defer',10,1);
function sw_override_defer($defer) {
return " ";
}
0 Comments