• Resolved Dorian Cioban

    (@doriancioban)


    Hello,

    I was wondering what’s the easiest and most painless way to use Facebook video embeds with lazy load functionality like with YouTube slides? Is that even possible?

    Currently we’re using about 5 Facebook video embedded slides (code in a separate layer) but our page size grows insanely huge due to Facebook loading JS and additional code separately for each slide/embed.

    It would be great if we could trigger the load on click only. Any way to do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ramona

    (@nextend_ramona)

    Hi @doriancioban

    The way our slider works is that it loads all slide’s content on page load.

    How did you add the Facebook videos? Which layer did you use?

    If you have coding knowledge, there’s a solution I can think of that might work for you. You could use a placeholder in your layer for the videos, and with custom coding out the Facebook video code to this placeholder when the slider switches to that slide.
    You can trigger your own codes on slide switching like this: https://smartslider3.helpscoutdocs.com/article/313-trigger-javascript-code-based-on-slide-switching
    And you could load the video to the new slide’s Facebook video placeholder when the slider switches there. So by default only the first slide’s video would be there, but not the rest.

    Just please note that we’re unable to provide support for any kind of custom coding.

    Thread Starter Dorian Cioban

    (@doriancioban)

    Wow, thanks for the quick reply.

    So, the procedure was like this:

    – We created a new slide
    – In that slide we have added a simple text layer
    – We copied the Facebook video link and generated a fully responsive code via iFramely
    – We pasted that code in the text layer and it instantly loaded the video

    The ideal situation for us would be if we could have a simple background image with a play button overlay. Once clicked (either background or the button), Facebook video embed loads (along with its code) and the user needs to click again on the Facebook video play button in order for the video to start. Is that currently possible in a non-code manner or even in the Pro version?

    Thanks for the link, we will check it out.

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @doriancioban

    I am sorry, but that is not possible without custom coding either. As we don’t have any integrations for Facebook videos.

    However if you would use a YouTube or Vimeo video instead, then in a YouTube or Vimeo layer
    https://smartslider3.helpscoutdocs.com/article/198-youtube-layer
    https://smartslider3.helpscoutdocs.com/article/197-vimeo-layer
    we have a Cover image setting that you can use to set an image before the video is loaded.

    Best regards,
    Laszlo.

    Thread Starter Dorian Cioban

    (@doriancioban)

    Thanks Laszlo for the reply.

    I will try both options you and Ramona have provided me with.

    Hopefully Facebook video will be more flexibile in the future so we can easily add it as a regular slide.

    Best,
    Dorian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Facebook video embeds issue’ is closed to new replies.