Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load videos wormeyman #400

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,40 @@
<span
><strong>Tanker-Pump Alignment <a [routerLink]="[]" fragment="note-alignment">*</a></strong></span
><br />
<video
class="img-fluid rounded"
autoplay
muted
loop
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-wagon-alignment.webm') }}"
alt="Tanker-Pump Alignment"
title="Tanker-Pump Alignment"
></video>
<picture>
<source
class="img-fluid rounded"
loading="lazy"
srcset="{{ APP_SETTINGS.links.getLocalImagePath('fluid-wagon-alignment.avif') }}"
alt="Tanker-Pump Alignment"
title="Tanker-Pump Alignment"
type="image/avif"
/>
<source
class="img-fluid rounded"
loading="lazy"
srcset="{{ APP_SETTINGS.links.getLocalImagePath('fluid-wagon-alignment.webp') }}"
alt="Tanker-Pump Alignment"
title="Tanker-Pump Alignment"
type="image/webp"
/>
<img
class="img-fluid rounded"
loading="lazy"
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-wagon-alignment.webp') }}"
alt="Tanker-Pump Alignment"
title="Tanker-Pump Alignment"
type="image/webp"
/>
</picture>
</div>
<br />
<div class="col text-center col-print-3">
<span><strong>Example Fast Transfer Build</strong></span
><br />
<img
loading="lazy"
class="img-fluid rounded"
loading="lazy"
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-wagon-fastest-transfer.webp') }}"
alt="Example Fast Transfer Build"
title="Example Fast Transfer Build"
Expand All @@ -114,15 +131,32 @@
<div class="col-12 text-center col-lg-5 col-print-4">
<span><strong>Transfer Rate Comparison</strong></span
><br />
<video
class="img-fluid rounded"
autoplay
muted
loop
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-transfer-rate-comparison.webm') }}"
alt="Transfer Rate Comparison"
title="Transfer Rate Comparison"
></video>
<picture>
<source
class="img-fluid rounded"
loading="lazy"
srcset="{{ APP_SETTINGS.links.getLocalImagePath('fluid-transfer-rate-comparison.avif') }}"
alt="Transfer Rate Comparison"
title="Transfer Rate Comparison"
type="image/avif"
/>
<source
class="img-fluid rounded"
loading="lazy"
srcset="{{ APP_SETTINGS.links.getLocalImagePath('fluid-transfer-rate-comparison.webp') }}"
alt="Transfer Rate Comparison"
title="Transfer Rate Comparison"
type="image/webp"
/>
<img
class="img-fluid rounded"
loading="lazy"
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-transfer-rate-comparison.webp') }}"
alt="Transfer Rate Comparison"
title="Transfer Rate Comparison"
type="image/webp"
/>
</picture>
</div>
</div>
<p id="note-alignment">*Trains snap into position when placed at train stations.</p>
Expand All @@ -148,8 +182,8 @@ <h4 class="card-title" id="fluid-flow-and-pipe-length">Fluid Flow and Pipe Lengt

<div class="col-8 col-lg-4 text-center">
<img
loading="lazy"
class="img-fluid rounded limit-img-height"
loading="lazy"
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-flow-vs-pipe-length.png') }}"
alt="Flow vs Pipe Length"
title="Flow vs Pipe Length"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,28 +137,62 @@ <h4 id="advanced-oil">Advanced Oil</h4>
<div class="col-6 col-sm-5 col-lg-6 text-center">
<span><strong>Refinery Plant IO</strong></span
><br />
<video
class="img-fluid rounded"
autoplay
muted
loop
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-io-refinery.webm') }}"
alt="Refinery Plant IO"
title="Refinery Plant IO"
></video>
<picture>
<source
class="img-fluid rounded"
loading="lazy"
srcset="{{ APP_SETTINGS.links.getLocalImagePath('fluid-io-refinery.avif') }}"
alt="Refinery Plant IO"
title="Refinery Plant IO"
type="image/avif"
/>
<source
class="img-fluid rounded"
loading="lazy"
srcset="{{ APP_SETTINGS.links.getLocalImagePath('fluid-io-refinery.webp') }}"
alt="Refinery Plant IO"
title="Refinery Plant IO"
type="image/webp"
/>
<img
class="img-fluid rounded"
loading="lazy"
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-io-refinery.webp') }}"
alt="Refinery Plant IO"
title="Refinery Plant IO"
type="image/webp"
/>
</picture>
</div>
<div class="col-6 col-sm-5 col-lg-6 text-center">
<span><strong>Chemical Plant IO</strong></span
><br />
<video
class="img-fluid rounded"
autoplay
muted
loop
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-io-chemical-plant.webm') }}"
alt="Chemical Plant IO"
title="Chemical Plant IO"
></video>
<picture>
<source
class="img-fluid rounded"
loading="lazy"
srcset="{{ APP_SETTINGS.links.getLocalImagePath('fluid-io-chemical-plant.avif') }}"
alt="Chemical Plant IO"
title="Chemical Plant IO"
type="image/avif"
/>
<source
class="img-fluid rounded"
loading="lazy"
srcset="{{ APP_SETTINGS.links.getLocalImagePath('fluid-io-chemical-plant.webp') }}"
alt="Chemical Plant IO"
title="Chemical Plant IO"
type="image/webp"
/>
<img
class="img-fluid rounded"
loading="lazy"
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-io-chemical-plant.webp') }}"
alt="Chemical Plant IO"
title="Chemical Plant IO"
type="image/webp"
/>
</picture>
</div>
</div>
</div>
Expand Down
Binary file added src/assets/images/fluid-io-chemical-plant.avif
Binary file not shown.
Binary file added src/assets/images/fluid-io-chemical-plant.webp
Binary file not shown.
Binary file added src/assets/images/fluid-io-refinery.avif
Binary file not shown.
Binary file added src/assets/images/fluid-io-refinery.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/assets/images/fluid-wagon-alignment.avif
Binary file not shown.
Binary file added src/assets/images/fluid-wagon-alignment.webp
Binary file not shown.
Loading