zadine
Forum Replies Created
-
Got this fixed with this:
if (function_exists('rocket_lazyload_textdomain')) { /** * Make sure Rocket Lazy Load updates after Ajax Complete */ function rae_lazyload_update_ajax($script) { $output = $script; $output .= '<script id="load-after-lazyload">window.addEventListener("LazyLoad::Initialized", function(e) { var lazyLoadInstance = e.detail.instance; const send = XMLHttpRequest.prototype.send XMLHttpRequest.prototype.send = function() { this.addEventListener("load", function() { lazyLoadInstance.update(); }) return send.apply(this, arguments) } }); </script>'; return $output; } add_filter('rocket_lazyload_script_tag', 'rae_lazyload_update_ajax');
Sadly not, tried to add lazyLoadInstance.update(); to ajax call but plugin doesn’t seem to recognise it. Ended up removing ajax from Search and Filter altogether.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Allow/Disallow Multilang OptionsThanks! Now it seems to work.
Forum: Plugins
In reply to: [Post Type Archive Pages] compatibility PolylangThis is just the feature I was looking for! Can I add that code to plugin myself somehow?
Forum: Plugins
In reply to: [Lazy Loader] Option to disable inline stylesACF Image field, with Image ID for every image, except first large image is with featured image field.
- This reply was modified 7 years, 1 month ago by zadine.
Forum: Plugins
In reply to: [Lazy Loader] Option to disable inline stylesTried it, maybe better but not sure. Cant see <noscript>s.
Forum: Plugins
In reply to: [Lazy Loader] Option to disable inline stylesI’m using ACF for almost all content
Forum: Plugins
In reply to: [Lazy Loader] Option to disable inline stylesLazyload images flicker, but not everytime. Wonder if that style got something to do with it. What’s the function of it anyway?
Using OSX Sierra and chromeForum: Plugins
In reply to: [Lazy Loader] Option to disable inline stylesHere’s the link. https://client.rae.fi/netmedi/wordpress2/
Forum: Plugins
In reply to: [Lazy Loader] Doesn’t lazy load imagesLatest version doesn’t add anymore lazyload class automatically. Something has changed?
Forum: Plugins
In reply to: [Lazy Loader] Plugin trying to load Featured Image in Wp-dminThat seems to work! Thanks for helping me out, and thanks for the awesome plugin!
Forum: Plugins
In reply to: [Lazy Loader] Plugin trying to load Featured Image in Wp-dmin[15-Sep-2017 16:27:35 UTC] PostThumbnailDebug: home_url( add_query_arg( [] ) ) = https://client.rae.fi/netmedi/wordpress2/netmedi/wordpress2/wp-admin/post.php?post=1697&action=edit | add_query_arg( [] ) = /netmedi/wordpress2/wp-admin/post.php?post=1697&action=edit | home_url() = https://client.rae.fi/netmedi/wordpress2 | $admin_url = https://client.rae.fi/netmedi/wordpress2/wp-admin/ [15-Sep-2017 16:27:35 UTC] PostThumbnailDebug: 0 === strpos( $current_url, $admin_url ) is NOT true. is_admin_request() returns false
Forum: Plugins
In reply to: [Lazy Loader] Plugin trying to load Featured Image in Wp-dmin[15-Sep-2017 13:16:03 UTC] PostThumbnailDebug: $current_url = https://client.rae.fi/netmedi/wordpress2 | $admin_url = https://client.rae.fi/netmedi/wordpress2/wp-admin/ | $referrer = https://client.rae.fi/netmedi/wordpress2/wp-admin/edit.php [15-Sep-2017 13:16:03 UTC] PostThumbnailDebug: 0 === strpos( $current_url, $admin_url ) is NOT true. is_admin_request() returns false
Forum: Plugins
In reply to: [Lazy Loader] Plugin trying to load Featured Image in Wp-dminNo didn’t work, lazy-loading still tries to process featured images :/
Forum: Plugins
In reply to: [Lazy Loader] Plugin trying to load Featured Image in Wp-dminThats strange, I only have netmedi/wordpress2/wp-admin/ on my browsers url..