Performance Preferences Explained

Website performance is very important and that's why we have added options to Presto Player for you to use depending on how are using your videos.

Presto Player includes 2 difference performance related settings. The first effects all videos on your website and the second is related to individual videos.

Global Player Performance Setting

Inside the Presto Player settings panel there is an option for performance. This setting by default will be toggled off however if you want our video player to load in a more optimal way, you can enable this feature.

However, when you do enable it you may run into some incompatibility issues depending on your hosting environment.

Specifically you may run into issue if you are using website caching or if you are using a CDN.

Caching Or Performance Plugins

If after enabling this option you notice that the video player is not working, you may have to exclude our player JS file from concatenation. The path to the file you want to exclude is:

/wp-content/plugins/presto-player/dist/components/web-components/web-components.esm.js

Over time, we will automatically exclude this file for the most widely used caching and performance plugins. We are already doing this for WP Rocket but with so many plugins available, you may need to create a manual exclusion.

Hold Up!
Won't excluding the Presto Player script from concatenation negatively impact performance? The short answer is no, it won't, and in many cases it may improve your page load speed and scores. The reason for this is most websites are running something called http2. It's best practice in http2 NOT to concatenate scripts.

More Info From CloudFlare

Content Delivery Networks CDN

If after enabling this option you notice that the video player is not working, the CORS headers setting in your CDN that needs to be enabled.

While this is easy to do with some CDN's such as Bunny Net, it may require you to send an email to your CDN provider. We see this mostly with web hosting companies that automatically add a CDN and don't provide an interface to change the settings. For example WPEngine and GoDaddy do this and require you to send in a support request.

If you are using Cloudflare for your CDN the CORS setting is enabled by default.

Individual Video Performance Options

These performance preferences are automatically set for YouTube or Vimeo videos. So the option pertains to self hosted and BunnyNet videos.

As with everything website performance related, there are tradeoffs. Every time you add any content to a page, it will add more that needs to be downloaded when someone visits your page. So it's always good to keep that in mind.

We offer you three options in the Performance Preferences:

  • Video Playback Speed: With this setting enabled, when the page is loaded, some of the actual video is loaded so there is zero potential delay when the visitor is ready to watch
  • Page Load Speed: With this setting enabled, only the poster image (thumbnail) is loaded when someone visits your page, along with video metadata such as the total time, so its better for website performance
  • Page Load Speed (Extreme): With this setting enabled, nothing is loaded, not even a poster (thumbnail image)

We give you multiple options because website performance is not a priority on all areas of your website.

And when we are referencing website performance, its not something that your visitor experiences, its more to keep Google Lighthouse, GTMetrix, and other website performance tools happy 🙂

So for example, if you have an online course, and you use Presto Player for your online course videos, you want to prioritize Video Playback Speed. And believe me, the load time will still feel instant to your learners.

However if you have a video on your homepage, you may want to choose Page Load Speed which will show the poster image.

All that being said, even for the Presto Player homepage, we are using the mute autoplay option which does load the video on the page load. However, this has little effect on our page speed scores because the video is web-optimized and we are using BunnyNet which slices the video up into smaller chunks. To us the benefit of grabbing the user's attention is much better than a tiny performance hit. Like everything, it's a tradeoff.

Settings That Impact Performance

As with anything that you add to your website, there may be a trade off performance wise.

Presto Player enables you to autoplay a video which loads the video file when someone visits your page. This will add to the page size in website performance testing tools.

For example, the Presto Player homepage currently has our muted autoplay feature enabled on one video.

For us the benefit of having autoplay enabled far outweighs the negative of having a larger page size.

Even though in this example the testing tools is saying that it takes 13 seconds for the page to fully load, to a website visitor it's still feels instantaneous.