Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter atcrips

    (@atcrips)

    Hello,

    I checked with the latest version of the plugin, and unless I use the preload method mentioned above, the font doesn’t load in time and square icons are displayed instead.

    Layout Shift:
    Related Nodespan.fp-elapsed
    Related Nodespan.fp-duration
    Related Nodediv.fp-volume
    Related Nodea.fp-fullscreen.fp-icon

    Related Nodediv.fp-timeline.fp-bar::before

    Thread Starter atcrips

    (@atcrips)

    I am able to preload the font on single post pages:

    <link rel="preload" href="<?php echo WP_PLUGIN_URL; ?>/fv-wordpress-flowplayer/css/icons/flowplayer.woff2" crossorigin="anonymous" as="font" type="font/woff2">

    And this seems to solve the issue. However, I was wondering if there is any better way to fix it since doing this will increase initial page size by 8KB (even if the user doesn’t end up playing any video).

    • This reply was modified 2 years, 8 months ago by atcrips.
    Thread Starter atcrips

    (@atcrips)

    Hello,

    Thank you for the response.

    I applied the fix you provided and it seems to have fixed it. However, now a new issue is being reported regarding the font used for the UI:

    Related Nodespan.fp-elapsed
    Related Nodespan.fp-duration
    Related Nodediv.fp-volume
    Related Nodea.fp-fullscreen.fp-icon

    https://ibb.co/942Y9G1
    https://ibb.co/RTrS9dy

    • This reply was modified 2 years, 8 months ago by atcrips.
    Thread Starter atcrips

    (@atcrips)

    You misunderstood me.

    I’m not concerned with video playback. The problem is that the plugin loads resources on pages where FV player isn’t used, hence slowing down the load time of all pages.

    I’m asking why and how I can prevent the plugin from loading CSS and JS files on non single post pages.

    Thread Starter atcrips

    (@atcrips)

    I still see long inline unminified CSS and an additional CSS file loaded on index and any other page that doesn’t contain a video.

    Also, after enabling “Optimize FV Flowplayer JS loading” the video takes multiple seconds to play and requires multiple clicks during which it doesn’t respond, giving a bad impression to the user.

    Thread Starter atcrips

    (@atcrips)

    Thank you but I’ve found a different way in the meantime.

    I just redeclared the variables needed to check account status in the PHP file and it worked.

    $auth = SwpmAuth::get_instance();
    $status = $auth->get_account_state();
    if (!SwpmMemberUtils::is_member_logged_in() || $status !== 'active') {
    // do something is user isn't logged in or logged in but account status isn't "active"
    }
    • This reply was modified 3 years, 11 months ago by atcrips.
    Thread Starter atcrips

    (@atcrips)

    Thank you for the update but I am affraid it still affects the file robots.txt

    I saw that you modified the first parameter of add_action from ‘wp’ to ‘template_redirect’ so I went searching for other parameters and I found ‘wp_head’.

    I just tested with wp_head and it seems to inject the AGL code only on pages where the <head> tag is present, which is perfect.

    Do you think using wp_head would cause any problems?

    • This reply was modified 4 years, 6 months ago by atcrips.
    Thread Starter atcrips

    (@atcrips)

    Also, please don’t forget about the robots.txt file, it is also affected.

    Thread Starter atcrips

    (@atcrips)

    I am using a plugin called Google XML Sitemaps by Arne Brachhold. The plugin creates both XML and HTML sitemap, and both are affected.

Viewing 9 replies - 1 through 9 (of 9 total)