Support » Plugin: The Ultimate Video Player For WordPress - by Presto Player » Serve resources from a consistent URL

  • Resolved Mr Saeed Miri

    (@saeedmiri)


    Hi

    today we test performance and we have one error in Serve resources from a consistent URL :

    /wp-content/plugins/presto-player/dist/components/web-components/web-components.esm.js
    /wp-content/plugins/presto-player/dist/components/web-components/web-components.esm.js?ver=1634921210

    In THis Page : https://ssa.co.ir/urban-tv/

    i add some function for remove version css and js. web-components.esm.js is loaded twice with version and without version??! all file in my site is ok but this!! please help for fix this.

    Thanks & Regards

    The page I need help with: [log in to see the link]

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

    (@2winfactor)

    Thanks for reaching out! It looks like whatever performance plugin you are running is removing the version strings from our script. We preload our script using the same version string that it’s enqueued with. So they do match, but it looks like something is removing the version string, so they no longer match. Did you try looking at your performance plugin settings?

    Thread Starter Mr Saeed Miri

    (@saeedmiri)

    Hi thank You For Reply

    I use Function for remove version in css and js , and i dont haved problem until now, but after your new update i saw this alarm. after remove Code In Function now everyhing is ok.

    I use Dynamic Load in Settings, Can you reduce the number of files Loaded by Presto Player per page?

    Thanks & Regards

    Plugin Author Andre Gagnon

    (@2winfactor)

    Thanks for following up! The way we load our player’s files is much more performant that loading one big javascript file.

    Instead, we only load the javascript parts that are needed on the page. This is known as “code-splitting”. This way you are not loading any more functionality than you need, which leads to an overall less amount of javascript loaded for our player.

    We no longer want to think in terms of number of requests, since http2 loads all requests simultaneously. It’s actually best practice (and more performant) to not to concatenate and bundle your scripts, but instead serve many smaller files as this would lead to better performance.

    Here’s some more information from Cloudflare about this:
    https://blog.cloudflare.com/http-2-for-web-developers/#bestpracticesforhttp2weboptimization

    Any questions about this, please let me know.

    Thread Starter Mr Saeed Miri

    (@saeedmiri)

    You are right, running parallel in http2 solves this problem.

    Everything works fine, just stop playing multiple videos at the same time on one page. if it is resolved it would be great.

    Thanks & Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Serve resources from a consistent URL’ is closed to new replies.