How To Speed Up A Divi Website

Divi slow to load?

Here are ways to speed up a WordPress site built with Divi:

  • Fewer files to request and smaller files are key. Each plugin and theme is likely to introduce several CSS and JS files apiece. Plugins like AutoOptimize can consolidate the CSS into fewer files and it can do the same with JavaScript. Almost every web server is capable of serving out files compressed with GZip. Almost every web browser is capable of decoding GZipped files.
  • More most of your Javascript to the footer. The header is the best (except when it isn't). When Javascript code goes into the header, that code executes first. It will block the display of content until the Javascript fully executes. This is called "render blocking." From an end-user perspective, this is horrible. They will be left with a white screen for much long than is ideal. Some code can always go into the footer: analytics code, helper code, code relevant to the lower sections of the page (eg. a dynamic footer).
  • Flush your content. First, work with a child Divi theme custom to your site. Hang time is a killer when you're waiting for a web page. PHP can wait for a good length of time before delivery. It is possible to urge it to begin earlier than otherwise. That sends content back to your audience faster. I do this by putting the flush() call at the top of the header.php file in the PHP code. If you're about to output the themed data, you're ready to deliver content: push it out as soon as you can, even starting the process before the page.tpl.php is populated and served. One thing to note: flushing content may not be a tactic that plays well with GZip.
  • Make content cacheable. WordPressput query strings onto the tail end of some URLs and change that string with each load to provide a fresh load of that image, script or styling. From an end user perspective, that takes a lot of time to re-fetch. Use a plugin like Far Future Headers to change the Expiry date (it's a meta data setting in the served assets) to push it days or even months into the future. That let's a web browser shoulder some of the load and keep copies of those elements on their computer instead of downloading them new with each page load.
  • Put a CDN (Content Delivery Network) between your server and your audience.
  • Choose a speedy, stable web host.

My favourite is A2 Hosting
More performance tips