Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

leihuang's avatar

Clone the laracasts site.

I started as a coding newbie and now I've been studying web development for 5 months. I am currently studying Vue.js. For practicing purpose, I want to build the laracasts site (front end) using Vue.js. Only advises on other techniques to build this site? I'm especially curious about the technique used to load the content only when they are scrolled to.

0 likes
4 replies
SaeedPrez's avatar

Lazy loading images is not that hard and there are tons of free scripts for that.. simply google lazy load images or something like that..

They usually have the real image URL in a data attribute, and when you scroll close to them, they take the URL from the data attribute and put it in the src attribute.

<!-- default -->
<img src="transparent.png" data-url="/img/banana.jpg">
<img src="transparent.png" data-url="/img/flower.jpg">
<img src="transparent.png" data-url="/img/dog.jpg">

<!-- scrolled too -->
<img src="/img/banana.jpg" data-url="/img/banana.jpg">
<img src="/img/flower.gif" data-url="/img/flower.gif">
<img src="/img/dog.png" data-url="/img/dog.png">
1 like
fabgcruz's avatar

Hi Guys! I'm a new member here. Is there any Laracasts example project available for cloning?

Thanks!

Please or to participate in this conversation.