Created
March 11, 2020 04:00
-
-
Save mehul0810/48e4fad5b1fb537aba53a76985894867 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function selfie_auction_disable_rocket_loader( $tag, $handle, $src ) { | |
| if ( | |
| 'jquery-ui-menu' === $handle || | |
| 'jquery-ui-position' === $handle || | |
| 'jquery-ui-core' === $handle || | |
| 'jquery-ui-widget' === $handle || | |
| 'jquery' === $handle | |
| ) { | |
| $tag = str_replace( 'src=', 'data-cfasync="false" src=', $tag ); | |
| } | |
| return $tag; | |
| } | |
| add_filter( 'script_loader_tag', 'selfie_auction_disable_rocket_loader', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment