Skip to Content Skip to Menu

CB Gallery lazy load: could you use min height

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
3 years 11 months ago #322064 by timstohr
Hi Kyle,
The lazy load of CB Gallery was a very good idea. Unfortunately, now the CB Activity stream tends to jump once the pictures load. Would it be possible to have the lazy loaded pictures to set a min-height of the div that they are going to load into? That would prevent the jumping of the page durinng loading...

Thank you!

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 months ago #322065 by krileon
What browser are you using? Native lazy loading is supposed to trigger loading outside of view so you don't notice content jump. Maybe noticeable if scrolling really fast though. For media uploaded to CB Gallery yes we'll be able to set some kind of predefined size since that information is collected at uploaded, but for other media it's not.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
3 years 11 months ago #322066 by timstohr
Replied by timstohr on topic CB Gallery lazy load: could you use min height
Hi yeah sorry, I am talking about media uploaded to CB Gallery. That one is causing the stream to jump. That would be really good if that worked.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 months ago #322067 by krileon
What browser are you using? I only see an issue if I'm just going nuts on my scroll wheel, which isn't a reasonable situation to implement for. Please also provide what the maximum width, height, and file size settings you're using in CB Gallery are as thumbnail size could be contributing to the issue.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
3 years 11 months ago #322068 by timstohr
Replied by timstohr on topic CB Gallery lazy load: could you use min height
Hi Kyle,
I think we misunderstood each other. I am talking about the photos uploaded to a CB Activity stream.

I have made a short screen video here: 1drv.ms/v/s!Ap2Qzya9x1hVj-lle1mIWdmSV1XH6A?e=Cj8dzp

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 months ago #322069 by krileon
I've added width and height to lazy loaded embed images output from CB Gallery in latest build. It will only add them if they've been cached, which they should be when uploaded. This should prevent the content jumping issue you're seeing, but again only applies to uploads through CB Gallery so if it's a link for example it won't apply a width and height.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum