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

Foliovision

Main navigation

  • 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 2 years, 7 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

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

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 © 2025 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‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!