Player in view area
You don't have to create the player right away if it's not visible after the page is loaded. This will speed up the page building. The player script will monitor the scrolling and create the player only if the container's visibility exceeds the threshold (20% by default).
You don't need to change the code, just enable the PRO option in the plugin