Skip to content

Frank Goossens' blog

  • Web-Tech blogposts
  • Other blogposts
  • WordPress & plugins
    • WP YouTube Lyte
    • Autoptimize
    • WP DoNotTrack
    • Do Not Donate!
  • about
    • Timemachine
    • Contact

My YouTube is Lyter then YourTube!

March 13, 2013 by futtta

The latest WP YouTube Lyte version came with support for responsive themes and added microdata for better search-engine discovery of your embedded video’s. But there were also some important improvements from a performance point of view;

  • The title of the video (and the description, length, …) is now requested and cached server-side (the data is stored in the WordPress database, as post_meta, to be precise) and included in the HTML instead of getting that data client-side using JavaScript
  • The LYTE player chrome (the play button -with 2 states- and the bottom control) is now fetched with one request for a CSS sprite (lytesprite.png) instead of 2 separate images
  • And finally a lot of the player properties are now defined in CSS instead of being dynamically set in JavaScript, resulting a a significantly smaller JavaScript-file

But what are words worth, you only want to know if WP YouTube Lyte still out-performs normal YouTube embeds, right? Well, there’s nothing like a nice old-fashioned comparative webpagetest;org test to see where we stand!

document completefully loadedvideo only
time (s)requestssize (KB)time (s)requestssize (KB)requestssize (KB)
Standard YouTube (page | result)1.757101674.718134838429.8
WP YouTube Lyte (page | result)1.0216791.3538100322.9

So yeah, WP YouTube Lyte is more efficient then normal YouTube embeds, by a very large margin! Now go and preach to the unfaithful, because after all, doesn’t the world deserve Lyter YouTube embeds?

Categories lang:en, performance, wordpress, wp-youtube-lyte Tags css sprite, oembed, post_meta, youtube

Autoptimize user? Speed up your site even more with AO Pro, use futttablog coupon code to get a 10% discount!

  • subscribe to my web-tech blogfeed
  • abonneer op niet-technische artikels
  • @optimatters on Twitter
  • @futtta on fediverse (mastodon)
This is an ad-free blog!

You said, she said

  1. Daan van den Bergh on Ceremonies het monopolie van de (Katholieke) Kerk?
  2. Daan van den Bergh on Autoptimize Pro released, secret discount code here ;-)
  3. futtta on Ceremonies het monopolie van de (Katholieke) Kerk?
  4. Andrea on Ceremonies het monopolie van de (Katholieke) Kerk?
  5. Richard Korthuis on Mastodon oEmbed requests overload; use WP Rest Cache

Recent Blogposts

  • When lazyloading iframes does (not) work (automatically)
  • About to see Wilco live …
  • Autoptimize Pro: page caching (finally) in beta
  • As found on Our Tube; Edward November – Cold Street Light
  • Eurovision 2023; my winner is … Blanca Paloma