• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

youtube API slows down site in some countries. can it be disabled?

[Solved]

Foliovision › Forums › FV Player › Requests and Feedback › youtube API slows down site in some countries. can it be disabled?

  • mark 3 years, 4 months ago

    Youtube API is slowing down the site for users in China since the youtube script will not load. The API is being called by FVPlayer (Fv-player-youtube.min.js). Was this added to a recent version? Is there a way to disable the youtube API?

    https://www.youtube.com/iframe_api
    GET /iframe_api HTTP/3
    Host: http://www.youtube.com
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
    Accept: /
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate, br
    DNT: 1
    Connection: keep-alive
    Referer: https://www.pinganlushang.com/
    Cookie: YSC=pHAeOArea6I; VISITOR_INFO1_LIVE=Ml_2ZWXX96Y
    Sec-Fetch-Dest: script
    Sec-Fetch-Mode: no-cors
    Sec-Fetch-Site: cross-site
    TE: trailers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Martin 3 years ago

    Hello Mark,

    we only load YouTube if it’s used in FV Player on the page.

    It seems you are using Settings -> FV Player -> Compatibility/Integrations -> “Load FV Flowplayer JS everywhere”. Are you loading posts with Ajax anywhere on the website?

    If there is a YouTube video then a small part of the YouTube script (55kB) is loaded on page load, but it’s done in a non-blocking way. But I see the web browser does show that the page is still loading.

    So we adjusted it a bit to not show the loading indicator on the tab if the YouTube API is slow to load initially.

    To be able to test this improvement please reinstall FV Player from this link: http://foliovision.com/downloads/fv-wordpress-flowplayer.zip

    Finally clicking the video to play loads the bulk of the YouTube player (about 800 kB) and once it’s loaded it plays.

    Thanks,
    Martin

    mark 3 years ago

    Martin:

    Thanks for your response. FV Player was updated with the fv-wordpress-flowplayer.zip file that you sent.

    Our site does not have any YouTube videos, so the code should never try to load even with JS everywhere set.

    The ULike plugin does use Ajax, but as far as we know, it does not add video.

    Thanks,
    Mark

    Martin 3 years ago

    Hello Mark,

    we provide that “Load FV Flowplayer JS everywhere” setting for special integrations of FV Player. Adding another setting to it of which libraries should load is technically possible, but it would make it so much harder to use.

    You said the only plugin which uses Ajax for your website front-end is WP ULike (we use it on some websites too) so please try to disable “Load FV Flowplayer JS everywhere” and test your website videos to see if anything breaks.

    Or do remember enabling that setting for some page builder?

    Thanks,
    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
Reply To: youtube API slows down site in some countries. can it be disabled?



Please Sign in or Register to upload files.

Related Posts

  1. Youtube Iframe API loading when not needed

    Youtube Iframe API loading when not needed

  2. Embed private YouTube videos into a secure membership site

    Embed private YouTube videos into a secure membership site

  3. Site with streaming video that can not be saved to harddisk in any way?

    Site with streaming video that can not be saved to harddisk in any way?

Primary Sidebar

Requests and Feedback

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    Footer

    Our Plugins

    • FV WordPress Flowplayer
    • FV Thoughtful Comments
    • FV Simpler SEO
    • FV Antispam
    • FV Gravatar Cache
    • FV Testimonials

    Free Tools

    • Pandoc Online
    • Article spinner
    • WordPress Password Finder
    • Delete LinkedIn Account
    • Responsive Design Calculator
    Foliovision logo
    All materials © 2026 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
    • This Site Uses Cookies
    • Privacy Policy
    • Terms of Service
    • Site Map
    • Contact
    • Tel. ‭+421 2/5292 0086‬