V
V
Vladimir Privalov2020-05-10 04:30:40
Image optimization
Vladimir Privalov, 2020-05-10 04:30:40

How to optimize image loading?

Hello! I connected yii2-images

to the project and set everything up. Everything seems to be working. But I can't figure out what the problem is. I make a selection of products by category and pass it to the view:

Product::find()->where(['category_id' => $category->id])->with('imageRico');

It seems I use "greedy" loading and all the same it does not help. The page loads, and only after a while the photos of the goods appear. What could be the reason?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question