There could be a couple of reasons. Firstly your server could be overloaded and might need to be upgraded or optimized. Let’s review that before going to your website and what you can do about it.
SSH to your droplet like so
Once in there, see if you are having load. You can see that by using the
htop command or
sar -q and
The above commands will show you how if you are experiencing load at the moment or in any other past event. If that looks okay, you’ll need to turn your attention to installing Opcache, PHP-FPM, Redis and services like that which help you optimize and speed the performance of the website on the server.
Now, let’s begin with the website. If you are using a CMS like WordPress, Magento, Opencart, or something else, you’ll be able to install some plugins to help you optimize your website. One of the first plugins you’ll need is the a caching plugin. If you are on a WordPress website, I’ll recommend using W3-Total-Cache, it provides good caching capabilities and additionally, you can minify your css and js files. The second plugin you’ll need would be for optimizing images, I can’t remember the name of the plugin I’ve used in the past however if searched you should be able to easily find it.
Having said that, I’ll recommend using Google Page Insights, it’s a tool which scans your website and gives you suggestions on how to fix/optimize it. You can check out this free online tool here.