Redo image loading on home page
This commit is contained in:
parent
14f20d372f
commit
9f9752a74d
@ -60,7 +60,7 @@ uses:
|
|||||||
<div class="col-sm-4 project-item">
|
<div class="col-sm-4 project-item">
|
||||||
<div class="card home-project">
|
<div class="card home-project">
|
||||||
{% if project.hero %}
|
{% if project.hero %}
|
||||||
<img src="{{project.hero.img_src}}" class="card-img-top" alt="" loading="lazy">
|
<img src="{{project.hero.img_src}}" class="card-img-top" alt="" loading="auto">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title"><strong>{{project.title}}</strong></h5>
|
<h5 class="card-title"><strong>{{project.title}}</strong></h5>
|
||||||
@ -110,7 +110,9 @@ uses:
|
|||||||
orderProjectGrid();
|
orderProjectGrid();
|
||||||
|
|
||||||
// re-order in 2 seconds in case anything was still lazy-loading
|
// re-order in 2 seconds in case anything was still lazy-loading
|
||||||
|
setTimeout(orderProjectGrid, 1500);
|
||||||
setTimeout(orderProjectGrid, 2000);
|
setTimeout(orderProjectGrid, 2000);
|
||||||
|
setTimeout(orderProjectGrid, 5000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
Loading…
x
Reference in New Issue
Block a user