Skip to content

Commit

Permalink
Revert "add lazy load to images or iframe on some pages"
Browse files Browse the repository at this point in the history
This reverts commit 2e92810.
  • Loading branch information
Fauzanmhr committed Aug 24, 2024
1 parent 2e92810 commit fdcb6d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion views/episode.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="row">
<div class="col-md-12">
<div class="ratio ratio-16x9 mb-4">
<iframe loading="lazy" id="streaming-iframe" src="<%= episode.streamingUrl %>" title="Streaming Player" allowfullscreen></iframe>
<iframe id="streaming-iframe" src="<%= episode.streamingUrl %>" title="Streaming Player" allowfullscreen></iframe>
</div>
<div class="mb-4">
<select id="streaming-source" class="form-select">
Expand Down
2 changes: 1 addition & 1 deletion views/genre-anime.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<tbody>
<% animes.forEach(anime => { %>
<tr>
<td><img loading="lazy" src="<%= anime.poster %>" alt="<%= anime.judul %>" class="img-fluid" style="max-width: 100px;"></td>
<td><img src="<%= anime.poster %>" alt="<%= anime.judul %>" class="img-fluid" style="max-width: 100px;"></td>
<td><%= anime.judul %></td>
<td><%= anime.rating %></td>
<td><%= anime.studio %></td>
Expand Down
2 changes: 1 addition & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<tbody>
<% animes.forEach(anime => { %>
<tr>
<td><img loading="lazy" src="<%= anime.poster %>" alt="<%= anime.judul %>" class="img-fluid" style="max-width: 100px;"></td>
<td><img src="<%= anime.poster %>" alt="<%= anime.judul %>" class="img-fluid" style="max-width: 100px;"></td>
<td><%= anime.judul %></td>
<td><%= anime.hariRilis %></td>
<td><%= anime.tanggalRilisTerbaru %></td>
Expand Down

0 comments on commit fdcb6d5

Please sign in to comment.