-
How do I totally remove the SVG Icon from loading? The SVG icon expands for a brief moment causing some jittering.
I would like to replace the SVG icon with a WebP icon that has a set width and height.
I have attached a screenshot
Foliovision › Forums › FV Player › How to … › How to Remove the SVG Play Icon
How do I totally remove the SVG Icon from loading? The SVG icon expands for a brief moment causing some jittering.
I would like to replace the SVG icon with a WebP icon that has a set width and height.
I have attached a screenshot
Here is another screenshot of what the icon looks like.
And this is the CSS I am using.
p.fv-flowplayer-mobile-switch { display: none }
.fp-play:before {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
width: 16px;
height: 16px;
content: ' ';
position: absolute;
top: 0;
left: 0;
margin: auto;
right: 0;
bottom: 0;
opacity: 0;
transform: none !important;
transition: none !important;
}
.flowplayer .fp-pause {
display: none !important;
}
.flowplayer.is-splash .fp-preload, .flowplayer.is-poster .fp-preload, .fp-waiting .fp-preload {
display: none !important;
}
.flowplayer .fp-play.fp-visible svg, .flowplayer .fp-pause.fp-visible svg, .flowplayer .fp-waiting.fp-visible svg {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
}
Hello Jovan,
Please check the HTML code of the page with FV Player on it. Is the player CSS file (typically fv-player-custom/style-1.css
) only loading in footer?
It could happen if the player is not part of the post content – then FV Player does not realize the CSS should load in head and will only load it from footer.
In upcoming FV Player 8 we add some styles right on the player DIV element to avoid FOUC (Flash Of Unstyled Content).
Thanks,
Martin
Hello Jovan,
Is the CSS set to load asynchronously? That could explain why the player HTML shows without proper formatting for a fraction of a second.
In that case FV Player 8 could always put in the minimal inline CSS to avoid it.
You can replace the SVG play icon using a CSS background using this code: https://foliovision.com/player/faq-intro/css-tips-and-fixes#play-icon
In FV Player 8 it will be in the plugin settings.
Thanks,
Martin
I have my CSS loaded without ASYNC because the majority of the CSS is critical.
I found a solution by minifying and combining all my CSS file into one file.
Now, my html loads at the same time with one CSS file.
The FOUC has gone away.
By combining all my CSS files I improved my Pagespeed score to an average of 74.
Hello Jovan,
Thank you for posting the details.
If you are not using anything to defer the CSS then the player loading should case no layout shifting or flash of un-styled content. It’s strange that you had to let your cache plugin to process the CSS so much (concatenate and minify) to get decent scores.
But the score depends on other page elements too. We found that foliovision.com scores do not improve if the optimize the CSS or JS in anyway, but for other websites where our clients serve ads it does improve the scores a lot.
Thanks,
Martin
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.
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.
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!
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!