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

Manually added lazy load #398

Merged
merged 3 commits into from
Sep 10, 2024
Merged
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 @@ -33,6 +33,7 @@
<strong>4x4 belt balancer</strong>
<br />
<img
loading="lazy"
class="img-fluid rounded"
src="{{ APP_SETTINGS.links.getLocalImagePath('balancer-4x4.webp') }}"
alt="4x4 belt balancer"
Expand Down
5 changes: 5 additions & 0 deletions src/app/cheat-sheets/game-base/belts/belts.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
on each tile.
</p>
<img
loading="lazy"
class="img-fluid rounded"
src="{{ APP_SETTINGS.links.getLocalImagePath('belt-signal-circuit.webp') }}"
alt="Transport Belt Signal"
Expand Down Expand Up @@ -90,6 +91,7 @@
<!-- <strong>Main Bus</strong> <br> -->
<a href="{{ APP_SETTINGS.links.getLocalImagePath('bus.webp') }}" target="_blank" rel="noopener">
<img
loading="lazy"
class="img-fluid rounded limit-img-height"
src="{{ APP_SETTINGS.links.getLocalImagePath('bus.webp') }}"
alt="Main Bus"
Expand All @@ -105,6 +107,7 @@
<div class="col-12 col-sm-6 col-lg-4 col-print-4 text-center">
<strong>Underground belts can be side loaded</strong><br />
<img
loading="lazy"
class="img-fluid rounded limit-img-height"
src="{{ APP_SETTINGS.links.getLocalImagePath('belt-tip-side-load.webp') }}"
alt="Side Load Underground"
Expand All @@ -114,6 +117,7 @@
<div class="col-12 col-sm-6 col-lg-4 col-print-4 text-center">
<strong>Splitters can filter items</strong><br />
<img
loading="lazy"
class="img-fluid rounded limit-img-height"
src="{{ APP_SETTINGS.links.getLocalImagePath('belt-tip-filter.webp') }}"
alt="Splitter Filter"
Expand All @@ -123,6 +127,7 @@
<div class="col-12 col-sm-6 col-lg-4 col-print-4 text-center">
<strong>Belts can be woven</strong><br />
<img
loading="lazy"
class="img-fluid rounded limit-img-height"
src="{{ APP_SETTINGS.links.getLocalImagePath('belt-weaving.webp') }}"
alt="Woven Belts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
<span><strong>Cargo Loading Setup</strong></span
><br />
<img
loading="lazy"
class="img-fluid rounded"
src="{{ APP_SETTINGS.links.getLocalImagePath('train-stack-load.webp') }}"
alt="Wagon Load"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</p>
<a href="https://i.imgur.com/6EenAcn.png">
<img
loading="lazy"
class="img-fluid rounded full-width"
src="{{ APP_SETTINGS.links.getLocalImagePath('military-range-comparison.webp') }}"
alt="Military Range Comparison"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<span><strong>Example Fast Transfer Build</strong></span
><br />
<img
loading="lazy"
class="img-fluid rounded"
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-wagon-fastest-transfer.webp') }}"
alt="Example Fast Transfer Build"
Expand Down Expand Up @@ -147,6 +148,7 @@ <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"
src="{{ APP_SETTINGS.links.getLocalImagePath('fluid-flow-vs-pipe-length.png') }}"
alt="Flow vs Pipe Length"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
<div class="row align-items-center">
<div class="col text-center">
<img
loading="lazy"
class="img-fluid rounded"
src="{{ APP_SETTINGS.links.getLocalImagePath('mining-direct-feed.webp') }}"
alt="Mining Direct Feed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
</div>
<div class="col-12 col-lg-6 text-center">
<img
loading="lazy"
class="img-fluid rounded"
src="{{ APP_SETTINGS.links.getLocalImagePath('formula-diagram.webp') }}"
alt="Formula Diagram"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ <h4 class="card-title" id="nuclear-sre-diagrams">SRE Diagrams</h4>
reactors
</p>
<img
loading="lazy"
class="img-fluid rounded"
src="{{ APP_SETTINGS.links.getLocalImagePath('nuclear-config-h.webp') }}"
alt="2x3 Reactor Setup"
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/factorio-icon/factorio-icon.component.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<img class="factorio-icon" src="{{ icon?.src }}" alt="{{ icon?.name }}" title="{{ icon?.name }}" />
<img loading="lazy" class="factorio-icon" src="{{ icon?.src }}" alt="{{ icon?.name }}" title="{{ icon?.name }}" />
<div class="factorio-icon-text" *ngIf="icon?.text">{{ icon?.text }}</div>
Loading