Why is my website running slow?

Your website has everything it needs to launch, but user have to wait for ages for it to fully operate. In modern days, slow running websites is unacceptable. This increases the bounce rate on your site as well as reducing shareability.
This slowdown has a lot of negative consequences. Especially if you run an e-commerce website, you may find your business losing sales. On top of this, Google ranks slower loading speed as a factor in your site SEO ranking.
Website loading slow has many causes, but in this article, we only focus on the most important reasons
If your website is slow, the first thing you should think about is that the web hosting is not suitable. But don’t rush to the conclusion that your Host Provider is bad. The word “unsuitable” Here there are many aspects, such as:
Hosting Location: The closer the data center location is, the faster the web will load. For example, your customer is mainly in Cambodia, but you hire a host to set up a website in the United States, halfway around the world, it will take a lot of time to load data from Your Hosting to customer’s browser
Hosting is overloaded: Your website has high traffic but you choose a hosting package that is too cheap. This is understandable because everyone wants to save money as much as possible. But everything has its price, you can’t wear a size S shirt when your body fits size XXL. If you’ve applied many of the right optimizations and your site is still overloaded, it’s time to consider switching or upgrading your current plan
Apache web server: It is no secret that Nginx is faster and consumes less memory than Apache. So, if your Web Hosting is using Apache, then you can try to change to Ngnix Web Server to experience the speed it gives you. But Nginx is not without its disadvantages compared to Apache. For example, Nginx configuration is complicated, much less documentation than Apache
Images are a big part of most websites today. They help to engage and share your brand voice. When it comes to image resolution, it makes sense that higher amounts of dots-per-inch (dpi) would make it look better. However, there is a point at which the images on your site may start slowing the loading of the site, especially for new visitors.
For most purposes, web images should be less than 400 KB. A slider image at 1920×1080 pixels (at 72 dpi) should suit your needs. If you do need a larger resolution image, you can also compress them to strip unnecessary data.
CSS stands for Cascading Style Sheets, is a technical term in the field of web programming. To make it easier to understand, imagine CSS like women’s makeup. The main effect of CSS is to shape the frame and decorate the website.
The problem with CSS is that if you don’t optimize it, your website will load excessively, take up space and take time to parse, and slow down your website significantly.
JS is an acronym for JavaScript, nowadays it is extremely rare to have a website without JS because it makes your website a lot more dynamic.
However, JS can be a burden for your website. Because if you don’t actively assign tasks to it, the JS will have to load and parse before the browser will display the content to the user, thus slowing down the website.