• Dear developers,

    upon activating the plugin and not referring it to any YT api, page speed went actually down using the default plugin settings without further tweaks.
    If I don’t want YT api, how to set your plugin up so that it actually lazy loads the video without the mentioned extra YT code bloat.
    I can Edit as HTML the native embed video code by YT as well, yet adding loading=”lazy” behind iframes sinks the page speed, and Speed Optimizer plugin doesn’t have lazyloading for videos unfortunately, meaning I can’t use any other caching plugin as that sinks the speed as well (Lazy Load by WP Rocket is also out of the question).
    Please help me tweak (= set up) your plugin properly, or share a code that I would be able to add to functions.php of my active theme (I’m on Astra).
    Many thanks!

    Monica

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Frank Goossens

    (@futtta)

    If performance goes down, something is wrong Monica, but to be able to tell you what is wrong I will have to see a page on a site of yours where this is the case. Can you share a URL?

    best,

    frank

    Thread Starter monica5

    (@monica5)

    Thanks a lot Frank, it’s https://www.monicakingsley.co – upon installing and activating the plugin, Performance on PageSpeed moves from 60-62 usual to 34.

    Plugin Author Frank Goossens

    (@futtta)

    OK, I can now see the page and score without LYTE active, can you activate LYTE for a short time to I can see what changes (and what might be going wrong)?

    Thread Starter monica5

    (@monica5)

    Done right now, it’s activated. Default settings, no changes.
    Thank you.

    Plugin Author Frank Goossens

    (@futtta)

    OK, the problem is that on mobile by default the YouTube embed is loaded immediately after the LYTE javascript executes. You should be able to change that by activating the “cache thumbnail locally” option so maybe try that.

    That being said; as the video is lazyloaded already even when LYTE is not active, there will be little to no performance improvement to be expected from LYTE.

    hope this clarifies,

    frank

    Thread Starter monica5

    (@monica5)

    I did try activating the “cache thumbnail locally” option (Yes), but it had no good effect either (only somewhat less worse effect):
    – Performance down to 57-58 from 60-31
    – LCP from roughly 5.2s to 5.8s
    – DOM size 870 from 858
    Summing up, no improvement on status quo ante at all.
    Do you agree with uninstalling and deleting the plugin, or any more good tricks up your sleeve?
    Btw I use Speed Optimizer (formerly SG Optimizer), but it offers no power over influence whether a video is lazyloaded or not (unlike images).
    Thank you and good evening.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    If performance is the only reason you installed LYTE (and not privacy/ GDPR) then indeed you can deactive/ delete it.

    Re other tricks; I don’t know “speed optimizer”, but check if there are options to defer the JS and CSS, if so that should improve FCP & LCP considerably?

    Thread Starter monica5

    (@monica5)

    Yes, performance was the only reason – I only seek to cut out the very extras that native YT embed code contains, but the solution to only get a thumbnail clicking which activates that extra YT code, is elusive.
    Perhaps that’s equivalent to lazyloading the whole video that Frank confirmed is the case anyway, what do you think please?
    I’m already defering JS, and even have defined scripts to exclude from deferral of render blocking JS… CSS is also both combined and minified, and within the PageSpeed test doesn’t offer a great savings potential (unlike excluding hero image from lazy loading, which I already did).
    So, I only seek to slim down the load hit associated with single embedded video… any more ideas as to this single area please?
    Thanks!

    Plugin Author Frank Goossens

    (@futtta)

    As far as I remember there was no mention of any youtube resources in the pagespeed insight report, which indicates it had not even loaded by virtue of it being lazyloaded. Based on that I don’t think there’s any further optimization to be done in that single area, no ??

    Thread Starter monica5

    (@monica5)

    Thank you Frank – I’m truly perplexed though. Upon removing the plugin (with that “cache thumbnail locally” option still toggled to Yes), I got first 57 Performance result only, and then twice in a row 77.
    No other work or tweaking done.
    Can there be an explanation to it please?
    Have a nice day both.

    Plugin Author Frank Goossens

    (@futtta)

    The only way to know what happened is comparing the main KPI’s and the detailed recommendations really ??

    Thread Starter monica5

    (@monica5)

    Thank you Frank, it turned out 77 was a fluke, not repeatable. Back to the previous 60-62 score.
    I also tried “AMP for WP – Accelerated Mobile Pages” plugin, but it didn’t result in any mobile improvement. I take it as having done everything that could have been done (apart from WebP images).
    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘setting up WP YouTube Lyte so that it actually decreases loading speed’ is closed to new replies.