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

I am a "Web Performance and Architecture Consultant" from Belgium, working on Web and Mobile Architecture by day and WordPress and web performance by night (more info here).

  • 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. Richard Korthuis on Mastodon oEmbed requests overload; use WP Rest Cache
  2. Max Janson on Autoptimize testimonial from Wolf Braun
  3. Chris on Contact Form 7 alternatives
  4. sachsongngu on WP YouTube Lyte featured on WP Glob
  5. lee on Hide-my-WordPress & Autoptimize compatibility glue

Recent Blogposts

  • Autoptimize Pro 1.3; instant.page
  • How to fix Autoptimize & Critical CSS cron issue
  • AOPro 1.2; delay JS, CSS & HTML as long as you want
  • As found Our Tube: Jeff Buckley @ Sin-é (1993) bootleg
  • wp_disaster_relief()