Home › Forums › Air WordPress Theme › Lazy-load earlier?
- This topic has 7 replies, 2 voices, and was last updated 9 years, 6 months ago by
ivan.
-
AuthorPosts
-
November 1, 2016 at 12:51 pm #11330
Hi, i want images to load earlier than the default theme setting , lets say 50px before they appear on the screen, or
as soon as they appear on the screen.
How could i do that?(For now, it load too late, so that some user do not notice there are images below)
November 2, 2016 at 3:00 am #11337Hi,
The lazy load general settings is in /js/custom.theme.js (line1392):
$.extend($.lazyLoadXT, { edgeY: 300 });You could change the value by plugin doc.
If you talk about the portfolio list page(the project item animation from bottom when scroll), I have noticed the items of first line will not be shown when page opened. You can’t fix it by edgeY value. We are checking it.
Cheers!
Bwsm – uiueux.com
November 3, 2016 at 3:27 am #11344Please follow:
– download the file, unzip it
– login FTP, go to: themes/air-theme/js/
– upload / replace: custom.theme.jsFW: before testing, please clean the browser cache.
November 5, 2016 at 7:21 pm #11355Thank you for the reply, for the lazy load, i changed it to
$.extend($.lazyLoadXT, { edgeY: 0 });and clean the browser cache, but nothing happen.
I want these images load as soon as they appear on screen.
November 6, 2016 at 12:45 pm #11356Please follow this post to do: https://seatheme.net/forums/topic/lazy-load-earlier/#post-11344
If you don’t know how to use FTP, please send your wp-admin(url/user/pass) and FTP account via my profile contact form , I’ll log in to fix it.November 8, 2016 at 11:20 pm #11376Hi, thanks for your reply, i have replaced the custom.theme.js with the new one and clean the browser cache, but no effect.
url: http://www.linmin.fr
November 9, 2016 at 2:31 am #11377Please download and unzip the attachment file, upload and replace again: /js/custom.theme.js
November 11, 2016 at 5:44 pm #11398Thank you, it works !!
-
AuthorPosts
- You must be logged in to reply to this topic.
