How can I use performance code?
How can I use performance code?
The performance code that we make available in our Dashboard has become a frequently asked question for many users, so in this text we will explain what it is for and how to use it.
What does performance code do?
The performance code, as the name says, is a function that we make available for users who would like to make their players faster, that's right, it makes the preload of some segments of the video, thus, leaving the infinitely faster player.
Anyway, this generates a greater amount of requests for the viewer's side and maybe for people looking for a rating on performance sites it may not be a good alternative, after all, these sites only look at some basic aspects of the page to performance.
Does it positively impact my site speed? Or is it just for the Player
Most of the time, it does not have a positive impact on the loading speed of your pages, as mentioned above, the performance code preloads segments of the video, that is, the browser will make more requests from various parts from the video. Metrics for these sites will typically look at speed factors only. of a quick page and the score is generated giving a performance value perspective that gives you a sense of how your page is performing.
So yes, the purpose of the performance code is just to make the player faster and for now it's focused only on the player.
How should I use the performance code?
The performance code can be used easily, just copy the code from our Dashboard and paste it between the <head> tags //Put the performance code here </head> of your site. In some cases some users even paste the code in the middle of their pages. This is not recommended behavior.
Updated on: 09/02/2022
Thank you!