Skip to main content

Experiments

Over time we will implement experiments into the plugin an let users vote them up if they like it.

caution

Experimental code may be changed or removed without prior notice.

Defer the WPM script

info

From version 1.15.0

There are many JavaScript optimization plugins that can defer scripts. We thought it might be a good idea to offer this option natively in our plugin. For now this can be done using an experimental filter.

/wp-content/themes/child-theme/functions.php
add_filter('wpm_experimental_defer_scripts', '__return_true');

If you like the defer script filter, vote it up over here.

info

From version 1.15.0

With this filter you can move the WPM script from the header to the footer. It is similar to deferring the script.

/wp-content/themes/child-theme/functions.php
add_filter('wpm_experimental_move_wpm_script_to_footer', '__return_true');

If you like the defer script filter, vote it up over here.