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

Foliovision

Making the web work for you

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

Problems with minify in footer

[Solved]

Foliovision › Forums › FV Player › Troubleshooting › Problems with minify in footer

  • SERGIO V. 7 years, 1 month ago

    Hello,

    the video on this page does not work on Firefox

    https://….com/lost-password-username/

    Moreover it shows Foliovision logo which should not happen.

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

    Hi Sergio,

    as our licensed user, I checked your site.

    I see an error on your JavaScript console: “TypeError: window.initFlowplayer is not a function”

    The function is called from within this JS file: https://….cloudfront.net/…/fv-flowplayer.min.defer.js?v=2

    It appears you are using some complex minify solution. That’s probably breaking it. Please let us know what exactly you use and then we can come up with some recommendation.

    But in general – flowplayer.conf JavaScript gets adjusted in wp_footer hook with priority 100, that means after all scripts have been loaded (footer JavaScript gets outputted with priority 10).

    However I see that we can improve this by using wp_localize_script() – standard WordPress API function. The problem is that we need to write directly into flowplayer object, but I now realize we can merge the localized variables into that. We can improve that and it should help, but I’m not exactly sure what you are trying to achieve here. If somebody is helping with your customized Minify, could you please confirm with them if wp_localize_script() will help?

    Making the web work for you,

    Martin

    SERGIO V. 7 years ago

    The following are some comments form one of our developers:

    Regarding Flowplayer, if you want to pass them some recommendation, here are my suggestions:

    “Avoid inserting any inline JavaScript code into the page. If you need to pass variables, no problem doing so either manually either using “wp_localize_script()”, but please don’t include any actual working script that depends on external JavaScript file to be present in order to work properly.

    I understand that you include a call to jQuery(‘#selector’).flowplayer(…) into the page at the place where the actual video player is embedded, but this isn’t the best practice.

    I hope that helps ;)

    Also – Logo does not show up on playlists but it appears on single videos.

    Martin 7 years ago

    Hi Sergio,

    1) We fixed the problem with logo. It was related to the issue with minify.

    2) We also removed any jQuery() or flowplayer JavaScript references from the site HTML. It’s all done via wp_localize_script() now, like your minify experts recommend. Now there should be no more issues.

    Please download the ZIP file here and then install: https://wordpress.org/plugins/fv-wordpress-flowplayer/

    Thanks,
    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
Reply To: Problems with minify in footer



Related Posts

  1. Lost your password in WordPress?

    Lost your password in WordPress?

  2. Client Section

    Client Section

  3. Lost WordPress Admin Password and Email? How to get back into your weblog…

    Lost WordPress Admin Password and Email? How to get back into your weblog…

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 © 2021 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. +1 518 412 4600