-
AuthorPosts
-
September 4, 2019 at 5:42 pm #1133975
Relevant Performance settings:
Disabling of template builder elements: Load only used elements (recommended)
Scan Widgets for Theme Shortcodes: Do not scan widgets
Self hosted videos and audio features (WP-Mediaelement scripts): Default – only load when needed (recommended)Every* page is loading: mediaelementplayer-legacy.min.css, wp-mediaelement.min.css, mediaelement-and-player.min.js, mediaelement-migrate.min.js
(*Every page with an ‘Easy Slider’)The shortcodes are being created like this by the editor even though the slide types are all ‘Image Slide’:
[av_slide id='4546' av_uid='av-17l8gax' slide_type='' video='https://' mobile_image='' fallback_link='http://' video_ratio='16:9' video_controls='' video_mute='' video_loop='' video_autoplay='' title='' link_apply='' link='' link_target='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size=''][/av_slide]
Notice the video=’https://’ part even though its an image slide.
This is being detected by av_video_assets_required and thus mediaelement is being load when not needed.
Do you have a fix/work around for this?
September 5, 2019 at 12:31 pm #1134358Hey first4websites,
Could you post a link to where we can see this happening please? Also please include backend access in private.
Best regards,
RikardSeptember 15, 2023 at 9:40 am #1419249interesting Question – and still relevant after such a long time.
I also wondered about the poorer loading times of a start page – especially these resources were named there for the poorer values (pagespeed insights – lighthouse). It should be possible, with the above-mentioned settings, not to load these resources if you have not selected videos as slides.September 15, 2023 at 12:28 pm #1419277Hi,
Thank you for reporting this. Something we have completly missed.
For next release I will add a fix for this in av_video_assets_required.
I will let you know here when the fix is ready so you can update the file.Meanwhile you can use filter avf_enqueue_wp_mediaelement to avoid loading (in functions.php line 679).
Return false when not needed.Best regards,
GünterSeptember 15, 2023 at 11:00 pm #1419315Thanks – I can wait until you get it fixed – no rush.
September 16, 2023 at 11:33 am #1419329Hi,
Here is the fixed file enfold\includes\helper-assets.php:
See functions av_video_assets_required and av_slideshow_required.
Best regards,
GünterSeptember 18, 2023 at 12:36 pm #1419464Yes – works nice!
September 18, 2023 at 3:51 pm #1419480 -
AuthorPosts
- You must be logged in to reply to this topic.