in photos plugin does any one know where to adjust the lazy load distance
as now when you scroll to the bottom of the pics that is loaded you have to wait so long untill it starts loading more
Tammy, do you mean that you want the photos were loaded not at the bottom of the window but much earlier, before you have scrolled to the bottom?
If so, you need to make changes in the /ow_plugins/photo/static/js/browse_photo.js file.
The system counts the certain number of pixels from the bottom side of the window and then starts to load photos. So you need to increase the number of pixels in the next line:
return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight, document.body.offsetHeight, document.documentElement.offsetHeight, document.body.clientHeight, document.documentElement.clientHeight) - (win.scrollTop() + win.height()) <= 200;
For example you need to increase the value from 200 to 400 .
would it be better to just clear cache
Tammy, do you mean that you want the photos were loaded not at the bottom of the window but much earlier, before you have scrolled to the bottom?
If so, you need to make changes in the /ow_plugins/photo/static/js/browse_photo.js file.
The system counts the certain number of pixels from the bottom side of the window and then starts to load photos. So you need to increase the number of pixels in the next line:
return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight, document.body.offsetHeight, document.documentElement.offsetHeight, document.body.clientHeight, document.documentElement.clientHeight) - (win.scrollTop() + win.height()) <= 200;
For example you need to increase the value from 200 to 400 .
/public_html/owl.systems/ow_static/plugins/photo/js/browse_photo.js As well
Tammy, have you managed to do what you were trying to achieve?hmmmmmm worked that time