WP Rocket
Forum Replies Created
-
HiΒ @loveinlions ,
Alfonso from WP Rocket here. Thank you for contacting us! π
Thank you @roam92 for your assistance here.
You have several options to exclude images from being lazyloaded:
– You can simply add a
data-no-lazy="1"property in your img or iframe tag.– You can also use the filters
rocket_lazyload_excluded_attributesorrocket_lazyload_excluded_srcto exclude specific patterns.– For iframes, the filter is
rocket_lazyload_iframe_excluded_patternsI hope this information helps!
Let me know if you need any further assistance, I am happy to help. πBest Regards,
Hi Hamilton!
I can see various errors in regards to the images that are failing to be loaded as if there was a 403 when trying to fetch the URL of the images. Could you please check whether disabling LazyLoad allows for the images to work?
Should you have any more questions or concerns please let me know and I’ll be more than happy to help you. Thank you for your time and patience. I hope you have a great day.
Regards,
JorgeHi @mgris!
Thank you for letting us know π
You are right. The variable is not declared for the second condition.
I opened a GitHub issue for our dev team to check and fix – https://github.com/wp-media/rocket-lazy-load/issues/123
Best regards,
Adame
Forum: Plugins
In reply to: [LazyLoad Plugin β Lazy Load Images, Videos, and Iframes] Script versionHi @roam92!
We don’t indeed minify the inline script. There is no minification method on our plugin.
We try to keep things simple π
I just added it as a feature request – https://github.com/wp-media/rocket-lazy-load/issues/122
It’s up to the product team to decide π
Best regards,
Adame
Hi @roam92!
Jorge from WP Rocket here. Thank you for taking the time to contact support.
Your request has been passed on to our product team who will investigate the idea.
We do appreciate this kind of feedback from our customers because it really is an important part of how we continue to improve our products.
Best,
Forum: Plugins
In reply to: [LazyLoad Plugin β Lazy Load Images, Videos, and Iframes] Script versionHi @roam92!
Jorge from WP Rocket here. Thank you for taking the time to contact support.
To be able to check that, would you please provide the whole script from the starting <script> tag and so we’re able to check why this is happening?
Thank you for your time and patience on this matter. I’ll be waiting for your reply. I hope you have a great day!
Regards,
Hi there!
In this case you can try using any of the helper plugins that we mention here to exclude those image src or classes that are causing conflict: https://docs.wp-rocket.me/article/15-disabling-lazy-load-on-specific-images
Should you have any more questions or concerns please let me know and I’ll be more than happy to help you. Thank you for your time and patience. I hope you have a great day.
Regards,
Hi Thomas!
Jorge from WP Rocket here. Thank you for taking the time to contact support.
That’s because
is_tag()function is being used. Try passing the Tag ID and so you can disable Lazyload only for that ID.Should you have any more questions or concerns please let me know and I’ll be more than happy to help you. Thank you for your time and patience. I hope you have a great day.
Regards,
- This reply was modified 5 years, 3 months ago by WP Rocket.
HiΒ @a4jpcom
Alfonso from WP Rocket here.
Browsers tend to use the image they have already downloaded (and stored in cache) instead of using a new one, so please repeat your test making sure you manually empty your browser cache
then, test what happens if lazy load is removed and the srcset is applied directly on the img tag. does it work as expected in that case?
Let me know the result of this, I am happy to help. π
Best Regards,
Hi Michael!
Jorge from WP Rocket here. Thank you for taking the time to contact us.
You can call lazyLoadInstance.update(); to trigger again the lazyload script. You will have to check that the lazyLoadInstance exists before doing so, else it could trigger errors.
Should you have any more questions or concerns please let us know and we’ll be more than happy to help you. Thank you for your time and patience. I hope you have a great day.
Regards,
Jorge MForum: Plugins
In reply to: [LazyLoad Plugin β Lazy Load Images, Videos, and Iframes] lazy loadForum: Plugins
In reply to: [LazyLoad Plugin β Lazy Load Images, Videos, and Iframes] lazy loadHi @hale66
Thank you for this update.If the problem persists after disabling the Lazy Load By WP Rocket plugin, then it is likely that we are not related to this issue, unless of course, there is something that makes you think we are somehow related to this.
I recommend you to contact the theme author and ask them what could be happening with the tabs and the load more button.
Have a great day!
Forum: Plugins
In reply to: [LazyLoad Plugin β Lazy Load Images, Videos, and Iframes] lazy loadHi @hale66
Thank you for providing these additional details.It seems your theme already includes a Lazyloading script. https://jmp.sh/X7VN78C
Can you please try using only one Lazyload script to see if it makes any difference here?
Please letΒ me know if this resolves the issue,
Thanks!
Hi @p47ri0t!
I’m afraid that this is not something that can be done for the time being.
You will need to either target a class using the following filter:
function rocket_lazyload_exclude_class( array $attributes ) { // EDIT/REPLACE THESE EXAMPLES: // you can add as many classes as you want, one per line. // IMPORTANT: The string match is literal, the string assigned to $attributes must exactly match the HTML markup. $attributes[] = 'class="divi-slider"'; //In above example, the class must be exactly class="divi-slider". If the actual class attribute is class="divi-slider something-else", the exclusion will not work. $attributes[] = 'class="some-image-'; // In the above example, note the missing double quotes at the end. This would exclude all images with a class of some-image-123, some-image-bla-bla, some-image-whatever-else etc. from being lazy-loaded, and it will also include cases where other classes are present: class="some-image-123 other-class and-other-one". $attributes[] = 'specific-class-name'; // You can also target one specific class name using only the name of the class. Any image using that class name will be excluded. it will cover cases like class="some-image-123 other-class specific-class-name and-other-one" // STOP EDITING. return $attributes; } add_filter( 'rocket_lazyload_excluded_attributes', 'rocket_lazyload_exclude_class' );Or targeting a file name pattern using the following filter:
function exclude_src( array $excluded_src ) { // EDIT/REPLACE THESE EXAMPLES: $excluded_src[] = 'example.com'; // <img src="example.com"> $excluded_src[] = '/example-path'; // <img src="/example-path/image.jpg"> $excluded_src[] = '/example?query'; // <img src="example?query=image.jpg"> // STOP EDITING. return $excluded_src; } add_filter( 'rocket_lazyload_excluded_src', 'exclude_src' );Best regards,
Adame
Sorry to hear the solution didn’t work for you.
Could you give us the url of your site and the exact url where the issue is happening?.
I will be waiting your answer,
Best regards.