Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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?

    #1134358

    Hey first4websites,

    Could you post a link to where we can see this happening please? Also please include backend access in private.

    Best regards,
    Rikard

    #1419249

    interesting 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.

    #1419277

    Hi,

    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ünter

    #1419315

    Thanks – I can wait until you get it fixed – no rush.

    #1419329

    Hi,

    Here is the fixed file enfold\includes\helper-assets.php:

    https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_5_6_6/includes/helper-assets.php

    See functions av_video_assets_required and av_slideshow_required.

    Best regards,
    Günter

    #1419464

    Yes – works nice!

    #1419480

    Hi @Guenni007,

    Thanks for the feedback.

    Best regards,
    Günter

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.