Autoptimize and Divi issues

Posted by George Nicolaou

On 25 Feb, 2018
George Nicolaou - Senior Web Developer

Autoptimize and Divi issues

by | Feb 25, 2018 | Divi Theme Code Snippets | 0 comments

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 " ";
}

Let’s connect

Get in Touch with me easily using the methods below

©Copyright  George Nicoalou 2023 |  Disclaimer  |  Site Map

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This
Divi Theme Code SnippetsAutoptimize and Divi issues