Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Andre Gagnon

    (@2winfactor)

    Hi There,

    Thanks for reaching out. We load parts of our player this way on purpose, which is actually much better for performance. Instead of bundling the entire javascript file into one big file, we instead load different parts of the file, based on what javascript you are using. This means, you don’t need to load all the Vimeo video logic, if you’re using a self-hosted video for example.

    Since you’re running http2, this is also a good thing, since these are requested simultaneously. You can see this in your waterfall:

    https://share.getcloudapp.com/NQuw6wL7

    The number of requests is not really what needs to be optimized anymore with http2. In fact, it’s not even audited anymore on GTMetrix if you’re running http2.

    Thread Starter sanchitgoyal

    (@sanchitgoyal)

    Hello Andre

    Thanks for the prompt reply. Number of scripts is not a problem. However it is also adding close to 500kb to the page size!

    I thought adding videos this way would be better performance wise but using wp rocket seems much better since there is no change in page size as well.

    Plugin Author Andre Gagnon

    (@2winfactor)

    I’m not seeing 500kb anywhere – looking at the waterfall, I’m seeing 239k from Presto Player:

    https://share.getcloudapp.com/jkuL5PDJ

    Thread Starter sanchitgoyal

    (@sanchitgoyal)

    There are total 30 scripts added as compared to without presto player. Only 14 has the name presto in it which is around 250 kb. The rest include YouTube etc. You can check the total Page size without the video and with video added via presto player.

    On the contrary if wp rocket is used only 1 request is added and there is no change to the page size.

    I saw the video by Adam on youtube and it mentioned the page size is reduced and scripts are only loaded when the video is clicked but it doesnt seem to be happening.

    Plugin Author Andre Gagnon

    (@2winfactor)

    It looks like WPRocket is trying to lazy load our youtube video. Those youtube requests are not coming from us, but the lazy loading module. You’ll need to disable that plugin’s functionality and the number of requests will reduce significantly. It’s not needed for our player since we don’t load anything until the user clicks play.

    Thread Starter sanchitgoyal

    (@sanchitgoyal)

    I will check the same tomorrow and confirm. Regards

    Thread Starter sanchitgoyal

    (@sanchitgoyal)

    I disabled lazy loading for iframes, videos and youtube with wp rocket and cleared cache as well. Still there are 30 requests added.

    For example these youtube requests are being loaded as well.

    https://prntscr.com/1347pcd

    Plugin Author Andre Gagnon

    (@2winfactor)

    Thanks for following up. Those requests are from your YouTube subscribe button which is in the action bar. In order to remove those youll want to remove the subscribe button. We don’t have any control over these requests, since YouTube loads these when the button is displayed.

    Thread Starter sanchitgoyal

    (@sanchitgoyal)

    Okay. In that case I think I will use wp rocket because the reason I wanted to use Presto Player was the youtube subscribe button but overall page increase of 500kb for the same is not worth it. It would have been great had the youtube scripts also loaded only on interaction.

    Plugin Author Andre Gagnon

    (@2winfactor)

    I think you are mistaken, though. Our player size is 239k. These additional requests your seeing in your screenshot are:

    1. Subscribe button ~ 79k
    2. Your youtube poster image ~ 169k

    You’re welcome to upload a smaller poster image via our if you want to reduce the size there, but this is not a direct result of our player. These requests would happen regardless of the video player used.

    Thread Starter sanchitgoyal

    (@sanchitgoyal)

    There is no mistake though.

    Without Presto player-

    71 requests. 895 kb page.

    https://prntscr.com/1364cd1

    With Presto player-

    101 requests. 1.4 mb page size.

    https://prntscr.com/1364e79

    I was planning to use Presto player to get the youtube subscribe button but it is not worth the tradeoff of 500kb increase (overall) and 30 requests. Rather using the direct video with wp rocket increase just 1 request and no increase in page size at all. I do not get the subscribe button but its not worth the additional page size. Regards

    Abz

    (@abzlevelup)

    Hello,

    Thanks for reaching out to us.

    Rest assured that all added requests are from youtube — this is just normal with youtube and their resource requests.

    Thanks for your time, you are pretty much welcome to revisit if another video plugin doesn’t work out for you.

    Have a great day.

    Best,
    Abz

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Why is Presto Player adding 30 requests to the page?’ is closed to new replies.