add_filter('style_loader_tag', 'flatsomeIconsPreloader', 10, 2); function flatsomeIconsPreloader($html, $handle) { if( 0 != strpos( $html, 'flatsome-icons' ) ) { $html = str_replace( "rel='stylesheet'", "rel='preload' as='style' ", $html ); $html .= ""; } return $html; }
Author: Wojciech Borowicz
I hope this post will help you to do what you need.
In case you want some assistance click here to get in touch