Tagged: x
-
AuthorPosts
-
October 16, 2016 at 9:29 am #1218175
fatheaddrummerParticipantHi There,
I am currently trying to defer js but when I do this, my onepage navbar is no more sticky.
Could you tell me which js I have to exclude from deferring in order to keep this one working?It would be awesome if you could help me out with this!! 🙂
Thanks in advance for the great support!
Related URL: http://www.diamond-precision-studio.com/de/mixing-online-de/Best, Christian
October 16, 2016 at 9:55 am #1218201
ThaiModeratorHi There,
Please add the following code under functions.php file locates in your child theme:
if (!(is_admin() )) { function defer_parsing_of_js ( $url ) { if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; if ( strpos( $url, 'x-head.min.js' ) ) return $url; return "$url' defer='defer"; } add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 ); }Hope it helps 🙂
October 16, 2016 at 10:46 am #1218257
fatheaddrummerParticipantThank you very very much!! I already found the file! 🙂
Could you maybe also tell me which js I have to exclude for the lightbox to show up correctly?
Thank you so much!!
Best, Christian
October 16, 2016 at 11:07 am #1218274
ThaiModeratorHere you are:
vendor-ilightbox.min.jsLet us know how it goes!
October 16, 2016 at 11:28 am #1218292
fatheaddrummerParticipantHello Thai,
Thank you very much! That sounds like, what I’ve been searching for!
I tried to exclude it “autoptimize”, but unfortunately for now the lightbox just opens ups as fullscreen…Could you tell me where the file is located? I think I need to give a path to autoptimize..
Thank you very much!
Best, ChristianOctober 16, 2016 at 12:15 pm #1218327
ThaiModeratorHi Christian,
The full path is: wp-content/plugins/cornerstone/assets/dist/js/site/vendor-ilightbox.min.js
Hope it helps 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1218175 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
