preload rules

This commit is contained in:
Set Hallstrom 2020-07-11 16:18:43 +02:00
parent 9f708b5bf1
commit 67ca1a53fd
3 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ lang: en
</div> </div>
<div id="audiowrap"> <div id="audiowrap">
<div id="audio0"> <div id="audio0">
<audio id="audio1" controls="controls">Your browser does not support HTML5 <audio id="audio1" preload="metadata" controls="controls">Your browser does not support HTML5
Audio!</audio> Audio!</audio>
</div>{% assign onetracker = page.tracks | size %} </div>{% assign onetracker = page.tracks | size %}
{% if onetracker > 1 %} {% if onetracker > 1 %}

View file

@ -64,7 +64,7 @@
</div> </div>
<div id="audiowrap"> <div id="audiowrap">
<div id="audio0"> <div id="audio0">
<audio id="audio1" controls="controls">Your browser does not support HTML5 <audio id="audio1" preload="metadata" controls="controls">Your browser does not support HTML5
Audio!</audio> Audio!</audio>
</div>{% assign onetracker = album.tracks | size %} </div>{% assign onetracker = album.tracks | size %}
{% if onetracker > 1 %} {% if onetracker > 1 %}

View file

@ -94,7 +94,7 @@ layout: default
</section> </section>
<!-- Audio player--> <!-- Audio player-->
<audio autoplay preload="true" data-matomo-title="{{ page.common.title }}"> <audio autoplay preload="metadata" data-matomo-title="{{ page.common.title }}">
<source src="https://media.basspistol.com/basspistol.com/{{ page.slug }}.mp3" type="audio/mpeg" ontimeupdate='updateTrackTime(this);' /> <source src="https://media.basspistol.com/basspistol.com/{{ page.slug }}.mp3" type="audio/mpeg" ontimeupdate='updateTrackTime(this);' />
<h1>Your browser isn't ready for so much hotness. Use the download-link instead.</h1>. <h1>Your browser isn't ready for so much hotness. Use the download-link instead.</h1>.
</audio> </audio>