I am creating an angular project where I am loading image files. Is there a way to make the image load more fluidly? Right now they are loading a little choppy.Here is the website so that you can see how the images are loading (every 5 seconds a new image will load) https://joevalook.github.io/weather-app/ and here is my repository: https://github.com/joevalook/weather-app
I have tried making the files smaller with a converter, but was wondering if there was some way to do it via angular.
Splitting up your app into separate components and using some loops and new variables along with the ngIfs you started implementing will help make things more clean and readable:
The latest versions of Angular include the
NgOptimizedImagedirective as part of the@angular/commonlibrary which you could start to use to help with image lazy loading and prioritization. For even more performance improvements, you could also consider testing out Cloudinary's free tier which is incredibly easy to use for optimizing your images on the fly so that you can remove your assets from the build and slim down your bundle. Currently you have almost 10Mb of image assets in that folder which significantly impact your performance.Hope this helps you Joe!