Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author cubecolour

    (@numeeja)

    The loading speed has always depended on the overall page weight. I added a fix in version 1.0.3 which delays the audio players from being displayed until the page has fully loaded. This is to prevent a flash of unstyled audio players before the CSS is applied.

    The perception may be that the page is loading slowly when this fix is used, but in reality the page is taking the same time to load as before.

    If you try version 1.0.1 of the plugin from https://ww.wp.xz.cn/plugins/audio-album/developers/ you can compare how it was without that fix.

    Thread Starter Music Mastering

    (@music-mastering)

    Great! The page is loading much better now with 1.0.1 but the volume level is not set to the maximum. Is there away or a code to lock it to the maximum?

    Thank you,

    Plugin Author cubecolour

    (@numeeja)

    The volume level shouldn’t be any different so I’m not sure what is happening.

    If you want to try the latest version but without the fix to hide the players until the page is fully loaded — instead of using an old version, you can add the following line to your child theme’s functions.php:

    add_action('wp_head', 'cc_hide_audio_until_load');

    you’d also need to add the following to your child theme’s stylesheet

    .track {
    	display:block!important;
    }

    Thread Starter Music Mastering

    (@music-mastering)

    I tried both 1.0.1 and 1.0.4. The old 1.0.1 is loading better for me, the only thing is that the volume is not set to the maximum, but on 1.0.4 the volume is set to the maximum.

    Plugin Author cubecolour

    (@numeeja)

    I’ve had a chance to look at this now & appears that the difference in start volume is a result of delaying the audioplayers from being shown to fix the unstyled issue – although this is not by design.

    The audioalbum plugin acts as a visual wrapper to default WordPress audio embed feature which uses the mediaelement.js script, so any default behaviour is inherited from there.

    In the old version (1.0.1) of the plugin without the fix described earlier, it seems that the default start volume of 0.8 built into WordPress was honoured, however this is being overidden when the fix is applied. This is not by design and I had not noticed it until now.

    I believe this value is hard-wired into WordPress in /wordpress/wp-includes/js/mediaelement/mediaelement-and-player.min.js I have not found a way so far of setting this value in the shortcode or otherwise, except as an unintended consequence of hiding the players and then showing them once the page has loaded, so I am not able to suggest a workaround.

    Thread Starter Music Mastering

    (@music-mastering)

    Thank you,

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

The topic ‘Loading time’ is closed to new replies.