Jump to content

Lazy Load Videos (Support)


Recommended Posts

This plugin speeds up load times by replacing supported video embeds (YouTube) with preview images. Users can then view the video by clicking the preview image and the embed will load like normal via javascript.

v1 Features:

  1. Speeds up page load times by preventing multiple video embeds from loading.
  2. Works in the background on page load and regardless if javascript enabled browser or not.
  3. Fall back code in place for non javascript browsers. User will simply be redirected to the videos page.
  4. Clicking the preview image will automatically load the video embed again through javascript.
  5. Choose which forums will support lazy loading of videos.
  6. Choose which member groups will have videos lazy loaded.
  7. Currently supported video sites: YouTube

Edited by Mike John
Link to comment
8 minutes ago, Joel R said:

I don't have a particular need for Lazy Load Videos, but would absolutely love a Lazy Load for Images.  

Can you expand on how would something like that work? I assume the aim would be to reduce the load times of extremely large remote/external images?

Link to comment
Just now, Mike John said:

Can you expand on how would something like that work? I assume the aim would be to reduce the load times of extremely large remote/external images?

(Not to hijack this plugin's support topic, but I appreciate your taking the time to understand the use case of Lazy Load for Images).

Yes, one use case would be to reduce the load times of extremely large remote images.  My personal example would be to only load image attachments in forum topics once the viewport stays on a particular screen.  

For example:

  • My forum topic contains many, many, many images that vertically stretch all the way down.  
  • When I load the topic, I skip down to Newest Unread post.  However, IPS wants to load ALL image attachments in ALL prior posts
  • Lazy Load would only start loading once viewport rests on Newest Unread post for 3 seconds. 

Hope this helps.  

 

Link to comment
2 hours ago, Joel R said:

Yes, one use case would be to reduce the load times of extremely large remote images.  My personal example would be to only load image attachments in forum topics once the viewport stays on a particular screen.  

I'll make a note of this for future mod ideas. I believe there shouldn't really be an issues on modifying the images. I'd just need to check if there was a way to properly hook into the javascript to have it load those images on view.

Link to comment
  • 3 months later...
  • 2 weeks later...
  • 4 weeks later...
  • 9 months later...
4 hours ago, Netherlord said:

also after posting a video, and the post merging in after send clicking the video takes you to youtube? Can it be made to play inside without a page refresh? As it's kind of annoying.

I'm using 4.2

Actually to expand on this their are other issues.

For some reason the videos 50% load with the image and play button! 50% of the time they do not. It's a mix on one page sometimes. This is also the cause for videos not being playable after posting and them merging into posts.

I've also encountered issues with people quoting videos and those videos quotes being a squashed image that is unclickable.

Kinda annoying and a touch messy. I know you get busy but I'm sure you can do something?

I think it has something to do with being ajax loaded? this can't be turned off in some places.... Hope you can do something.

Edited by Netherlord
Link to comment
On 7/27/2017 at 5:18 AM, Netherlord said:

A button to toggle between http and non https would be nice in the plugin setting. I was able to make it work by changing http to https within the xml! I was getting a browser ssl warning but all is good now. I imagine others on ssl only might have this issue too.

Where are you getting a non secure link from? Just checked and should be using https in both js and source code.

On 7/27/2017 at 5:32 AM, Netherlord said:

also after posting a video, and the post merging in after send clicking the video takes you to youtube? Can it be made to play inside without a page refresh? As it's kind of annoying.

Is this the auto post merge or manual one? I can't seem to reproduce this.

23 hours ago, Netherlord said:

Actually to expand on this their are other issues.

Just how many videos are we talking about? i assume all Youtube as well? I'm looking into the quote issue as can reproduce that but not the merge issue.

 

Link to comment

I was way too tired when I wrote the bugs. I've gone over what issues I had and answered you below. Hopefully this helps.

45 minutes ago, Mike John said:

Where are you getting a non secure link from? Just checked and should be using https in both js and source code.

From the yt image thumbnail I believe. it was coming in as http on the page. As when I checked unsecure parts that image was the only part http. (Easily fixed it by changing the http to https is the xml file though)

45 minutes ago, Mike John said:

Is this the auto post merge or manual one? I can't seem to reproduce this.

Oh replication on this one!

With Ajax pagination on: switch between pages with videos on on the page you land on, They fail to load with playable image on them and click to youtube

With Ajax pagination off, The above does not happen and they load fine.

with it either on or off, if you enter a thread and post a video. The post will be added to the thread but the video within the post will not be playable and will take you to youtube if clicked until you refresh the page.

Seems to be an issue with ajax auto loading the posts in and the videos failing onto the non javascript backup, Logic wise that seems to be the issue.

Edited by Netherlord
Link to comment
4 minutes ago, Netherlord said:

From the yt image thumbnail. it was coming in as http on the page.

Sorry, I get it now.

4 minutes ago, Netherlord said:

Seems to be an issue with ajax auto loading the posts in and the videos failing onto the non javascript backup, Logic wise that seems to be the issue.

Thanks, just looking for some solutions now.

Link to comment
  • 3 weeks later...
  • 3 weeks later...
  • 8 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...