lazy load breaking BuddyPress upload avatar feature




Wordpress LScache Plugin: lazy load breaking BuddyPress upload avatar feature

Last Updated on: Wed, 15 Apr 2026 00:00:02
After lots of testing, I discovered if lazy loaded is enabled, when uploading avatar to BuddyPress, only part of image is shown. There is no ability to crop the photo. Lazy load breaks all functionally of the BuddyPress upload avatar feature, making it impossible to use. I tried this lazy load exclude with no luck: /wp-content/uploads/avatars/ I really need to have lazy load enabled to speed up our site. Any ideas on how to get the BuddyPress upload avatar feature working with lazy load? Does the avatar image has any special classname? In todays release v2.9, you can exclude lazyload by classname. Its good to know that classes are being added, but unfortunately, there are not classes on images in the BuddyPress avatar upload area. Is there a method to exclude a single page from lazy load or do you have any other ideas? Thanks for any help. Thanks for your feedback. We are able to reproduce this issue. Will figure out a solution and reply later. Thanks, Hai Thats great news. Looking forward to it! By checking source code, we found that image in crop area is from a js template, the src of that image is data.url so if you put /wp-content/uploads/avatars/ there it wont work. Just add data.url to lazy load image excludes, it will work. Best Wishes, Hai Also, to better improve the compatibility with buddypress, we improved the code by excluding that invalid src of image. The commit is in https://github.com/litespeedtech/lscache_wp/commit/e86ac3f3be9f213dd1ad0690e9a7a63cac2e9186 and will be included in next release. Thanks for your feedback again. Happy new year! Thank you very much. Tested it and everything seems good now. Great support here!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference