By Sudip Lahiri
I am running a nextjs application Ubuntu 22.04 droplet@2GB RAM 1AMD vCPU 50GB storage . All other contents are getting loaded very fast except images. Images are getting loaded very slow on page load. Each image has reduced size in kb’s and getting loaded in the browser in an optimized way.
Could anybody please advise how could I resolve this issue.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @sudiplahiri,
I’ll recommend checking some Application tools like Google’s PageSpeed Insights, it should give you more information to act upon.
Additionally, are your images locally stored, or are you using some external link to load them, that might be a reason behind the slowness as well. If you are using an external link to load them, I recommend against it as it can cause what you’ve described.
Hello @sudiplahiri
You can make sure that the images are optimized in size (both file size and resolution).
Additionally, you can use some caching to load them faster instead of connecting to the server each time a resource is accessed.
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.