• Resolved Anonymous User 14978628

    (@anonymized-14978628)


    Hey Frank, is it possible to “leverage browser caching” for https://i.ytimg.com/ ? As it’s one of the suggestions given by pagespeed. Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Not out of the box, but you could download the thumbnail (or put one of your own liking) and use Lyte’s API (lyte_match_thumburl filter) to tell it to use this local image?

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    How would i use the “Lyte’s API (lyte_match_thumburl filter)” ? Does that go in the functions.php with a url to the local image? Sorry, need my hand held on this one πŸ˜‰

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Ah, just realized the image linked with https://i.ytimg.com/ is the actual cover image of the video, the thumbnail. I thought it was that little play button. Not sure if this will be possible then as all videos have different thumbnails.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    true. no easy automated fix I’m afraid.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    no probs, thanks anyway.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    update: lyte 1.7.0 will have an option to cache thumbnails locally @martychc23, good for privacy and performance! πŸ™‚

    (also @ronwisely )

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Ah, I was actually thinking about this recently.

    I use another plugin (A3 Lazy Load) for lazying images.

    It also has an option for lazy loading videos, but for some reason it changes the size of the video from 16:9 to 4:3, so I stuck with this plugin as my videos look better.

    But what I liked about that plugin was that it lazy loaded videos just like images by fading them into view on user scroll without making any external calls like YTL does.

    I guess the coming update will solve that issue?

    If so, that’s great news as this was always a slight disadvantage when using YTL!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, the video thumbnails are _not_ lazyloaded (but are loaded after DomContentLoaded) and are not (optionally) loaded from your own server instead of YT’s πŸ™‚

    (1.7.0 has been released in the mean time, so update & play around with it πŸ™‚ )

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Hey Frank,

    The hover text for No (default) for the following options:

    Also act on normal YouTube links?

    Cache thumbnails locally? (beta)

    Reads

    “No, I’ll stick to httpv or shortcodes”

    Is that supposed to say that?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    err .. nope, not for “cache thumbnails” at least πŸ™‚

    fixed on Github, will trickle down to next minor release.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Leverage Browser Caching’ is closed to new replies.