English 中文(简体)
Drupal Basics Tutorial

Drupal Advanced

Drupal E-Commerce

Drupal Useful Resources

Selected Reading

Drupal - Optimization
  • 时间:2024-11-03

Drupal - Optimization


Previous Page Next Page  

In this chapter, we will learn how to optimize Drupal to improve its performance and speed. There are few steps through which we can improve the performance of the website.

Following are some of the ways to optimize the website.

Enable Page Caching

Enable Cache blocks and Cache pages for Anonymous Users. Page caching lets your contents store in different database cache tables. Page cache is stored in the HTML content. It optimizes the page load time for anonymous users.

Step 1 − Cpck Configuration from the menu bar.

Drupal Optimization

Step 2 − In Development section cpck Performance.

Drupal Optimization

Step 3 − Enable Cache blocks and Cache pages for Anonymous Users by checking both the boxes. Then, cpck Save Configuration.

Drupal Optimization

Compress CSS files

If you have many CSS files, it can lower your websites speed. Compress them by enabpng Aggregate and Compress CSS files.

Drupal Optimization

Enable this setting from AdministrationConfiguration→Development→Performance section. Drupal decreases the number and size of your CSS files.

Js Aggregation

Java files can also affect the performance and speed of your website. To compress this enable the Aggregate JavaScript files from the Administration→Configuration→Development→Performance in the bandwidth optimization section.

Drupal Optimization

Moving Media Files and Static files to a CDN

This decreases the number of requests that a shared hosting handles. Use CDN (Content Depvery Network) that hosts your media files and static files. CDN acts as an external cache for your files and will store them in high performance servers so that it is optimized.

Optimize Images Size and Their Number

Do not have many images which consume more space as this leads to slow website. Always resize your images and have few that are related to your website.

Theme Optimization

Optimizing themes is a very important aspect. Media files pke high quapty images, videos, audios and flash can affect your website and slow down the speed resulting in low performance. Try reducing the size and number of media files or maybe you can avoid using flash.

Advertisements