{"id":9,"date":"2019-11-20T17:39:45","date_gmt":"2019-11-20T16:39:45","guid":{"rendered":"https:\/\/www.combell.com\/en\/help\/?post_type=ht_kb&#038;p=9"},"modified":"2020-03-08T18:08:52","modified_gmt":"2020-03-08T17:08:52","slug":"drupal-general-optimization","status":"publish","type":"ht_kb","link":"https:\/\/www.combell.com\/en\/help\/kb\/drupal-general-optimization\/","title":{"rendered":"Drupal &#8211; General optimization"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--alert   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThis article is optimized for Drupal 7    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>Drupal is one of the most popular content management systems. It can handle small and large websites equally well, with a little optimization. This article will help you prepare your CMS to handle large traffic without losing on speed.<\/p>\n<p>The first part of this article will show you standard optimization techniques, suitable for every hosting, even if you are not using the caching options.<\/p>\n<p>Only when you have completed the general optimization, <a href=\"https:\/\/www.combell.com\/en\/help\/kb\/performance-hosting-with-drupal\/\">you can proceed to the second part of the article, which shows you how your CMS can benefit from the Performance hosting tools<\/a>.<\/p>\n<h4 id=\"tableofcontents\">IN THIS ARTICLE:<\/h4>\n<ul>\n<li><a href=\"#cache\">Use the Drupal cache<\/a><\/li>\n<li><a href=\"#apc\">Activate APC<\/a><\/li>\n<li><a href=\"#boost\">Use the Boost module<\/a><\/li>\n<li><a href=\"#client\">Client optimization<\/a><\/li>\n<li><a href=\"#aggregate\">Install Aggregate Cache<\/a><\/li>\n<li><a href=\"#render\">Manage Render blocking resources<\/a><\/li>\n<\/ul>\n<h2 id=\"cache\">Use the Drupal cache<\/h2>\n<p><em>Enabled by default for Drupal 8<\/em><\/p>\n<p>Activate it in the backend of Drupal like so:<\/p>\n<ol>\n<li>Log in with your Drupal admin area<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3998 size-medium\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization2-216x300.png\" alt=\"Log in Drupal admin\" width=\"216\" height=\"300\" \/><\/li>\n<li>Click on Configuration at the top of the admin bar<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3999 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization3.png\" alt=\"Configuration\" width=\"100\" height=\"29\" \/><\/li>\n<li>Click on Performance in the Development section<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4000 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization4.png\" alt=\"Development &gt; performance\" width=\"661\" height=\"116\" \/><\/li>\n<li>Here check the following:\n<ol>\n<li>Cache pages for anonymous users<\/li>\n<li>Cache blocks<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4001 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization5.png\" alt=\"Caching\" width=\"240\" height=\"98\" \/><\/li>\n<li>Click on Save configuration<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4002 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization6.png\" alt=\"save configuration\" width=\"177\" height=\"44\" \/><\/li>\n<\/ol>\n<h2 id=\"apc\">Activate APC<\/h2>\n<p>WARNING: Do not activate APC if you are going to use the optional caching Redis add-on!<\/p>\n<p>(Do not do the changes for APC in settings.php \u2013 do it in the backend).<\/p>\n<ol>\n<li>Activate APC in <a href=\"https:\/\/my.combell.com\/en\" target=\"_blank\" rel=\"noopener\">the control panel<\/a>. <em>APC is available for PHP 5.4 and lower<\/em>\n<ol>\n<li>Log in <a href=\"https:\/\/my.combell.com\/en\" target=\"_blank\" rel=\"noopener\">the control panel<\/a><\/li>\n<li>Follow My Products &gt;&gt; Web hosting &gt;&gt; Hosting details<\/li>\n<li>From the left-hand panel go to PHP settings<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4006 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization10.png\" alt=\"PHP settings\" width=\"976\" height=\"624\" \/><\/li>\n<li>You are now in the Overview. Check the PHP version.<\/li>\n<li>Switch to the ON\/Off tab.<\/li>\n<li>Switch on apc.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4009 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization13.png\" alt=\"Switch on APCU\" width=\"223\" height=\"186\" \/><\/li>\n<li>PHP changes take time. To check if your changes took place switch to the PHP info tab. Look for the APC section. If it is there, you have activated APC successfully.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4011 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization15.png\" alt=\"APCu enabled?\" width=\"719\" height=\"314\" \/><\/li>\n<\/ol>\n<\/li>\n<li>Click on the link to <a href=\"http:\/\/drupal.org\/project\/apc\" target=\"_blank\" rel=\"noopener\">download Drupal APC<\/a> and install in \/sites\/all\/modules\/.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4012 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization16.png\" alt=\"download Drupal APC\" width=\"626\" height=\"50\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4013 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization17.png\" alt=\"in \/sites\/all\/modules\/\" width=\"802\" height=\"25\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4014 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization18.png\" alt=\"in \/sites\/all\/modules\/\" width=\"591\" height=\"23\" \/><\/li>\n<li>Enable APC from the Modules section of your backend.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4015 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization19.png\" alt=\"Modules\" width=\"81\" height=\"27\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4016 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization20.png\" alt=\"Enable APC from the Modules section\" width=\"1366\" height=\"178\" \/><\/li>\n<li>Now add the following code to the settings.php file.<\/li>\n<\/ol>\n<p>This file can be found in \/sites\/default\/settings.php (from the root of your Drupal installation).<\/p>\n<pre><code> \/**\nAdd APC Caching.\n *\/\n $conf['cache_backends'][] = 'sites\/all\/modules\/apc\/drupal_apc_cache.inc';\n $conf['cache_class_cache'] = 'DrupalAPCCache';\n $conf['cache_class_cache_bootstrap'] = 'DrupalAPCCache';\n \/\/$conf['apc_show_debug'] = TRUE;  \/\/ Remove the slashes to use debug mode.\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4017 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization21.png\" alt=\"\/sites\/default\/settings.php\" width=\"349\" height=\"25\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4018 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization22.png\" alt=\"\/sites\/default\/settings.php\" width=\"307\" height=\"28\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4019 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization23.png\" alt=\"settings.php file\" width=\"687\" height=\"166\" \/><\/p>\n<p>Now check if the site still works. If yes, proceed to the next step.<br \/>\nAdd the following code to the settings.php file:<\/p>\n<pre><code> $conf['page_cache_without_database'] = TRUE;\n $conf['page_cache_invoke_hooks'] = FALSE;\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4020 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization24.png\" alt=\"settings.php file\" width=\"702\" height=\"211\" \/><\/p>\n<p>This ensures that page caching also calls for APC.<\/p>\n<p>Double check if the site still works.<\/p>\n<h2 id=\"boost\">Use the Boost module<\/h2>\n<ol>\n<li>Prepare\n<ol>\n<li>Enable Clean URLs in Configuration &gt;&gt; SEARCH AND METADATA &gt;&gt; Clean URLs<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4021 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization25.png\" alt=\"Configuration\" width=\"100\" height=\"29\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4022 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization26.png\" alt=\"Search and metadata\" width=\"665\" height=\"233\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4023 size-medium\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization27-300x160.png\" alt=\"Clean URLs\" width=\"300\" height=\"160\" \/><\/li>\n<li>Make sure Cronjobs are not disabled.<\/li>\n<\/ol>\n<\/li>\n<li><a href=\"https:\/\/drupal.org\/project\/boost\" target=\"_blank\" rel=\"noopener\">Download the Drupal Boost module<\/a> and install it in your Drupal folder, in sites\/all\/modules.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4024 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization28.png\" alt=\"Download the Drupal Boost module\" width=\"630\" height=\"51\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4025 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization29.png\" alt=\"sites\/all\/modules\" width=\"818\" height=\"23\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4026 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization30.png\" alt=\"sites\/all\/modules\" width=\"608\" height=\"22\" \/><\/li>\n<li>Enable the module from the Modules section of your backend.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4027 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization31.png\" alt=\"Modules\" width=\"81\" height=\"27\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4028 size-large\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization32-1024x105.png\" alt=\"Enable the module\" width=\"643\" height=\"66\" \/><\/li>\n<li>Follow Configuration &gt;&gt; Development &gt;&gt; Performance and uncheck Cache pages for anonymous users.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4029 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization33.png\" alt=\"Configuration\" width=\"100\" height=\"29\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4030 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization34.png\" alt=\"Development &gt; performance\" width=\"661\" height=\"116\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4031 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization35.png\" alt=\"caching\" width=\"239\" height=\"58\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4032 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization36.png\" alt=\"Save configuration\" width=\"177\" height=\"44\" \/><\/li>\n<li>Make sure the cache directory in Configuration &gt; System &gt; Boost &gt; File System has 755 permissions.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4033 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization37.png\" alt=\"Configuration\" width=\"100\" height=\"29\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4034 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization38.png\" alt=\"System &gt; boost\" width=\"669\" height=\"241\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4035 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization39.png\" alt=\"File system\" width=\"800\" height=\"46\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4036 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization40.png\" alt=\"\/drupal\/cache\" width=\"651\" height=\"74\" \/><\/li>\n<li>.htaccess\n<ol>\n<li>Backup your original .htaccess file.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4037 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization41.png\" alt=\".htaccess file\" width=\"345\" height=\"23\" \/><\/li>\n<li>Copy the custom generated .htaccess rule from Configuration &gt; System &gt; Boost &gt; .htaccess &gt; .htaccess Generation and copy them into your .htaccess file. &#8211; make sure you paste the segment in the correct place &#8211; see the instructions bellow the generated text.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4038 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization42.png\" alt=\"Configuration\" width=\"100\" height=\"29\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4039 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization43.png\" alt=\"System &gt; boost\" width=\"669\" height=\"241\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4040 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization44.png\" alt=\".htaccess &gt; .htaccess Generation\" width=\"798\" height=\"96\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4041 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization45.png\" alt=\"Generated rules\" width=\"671\" height=\"237\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4042 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization46.png\" alt=\".htaccess file.\" width=\"1187\" height=\"401\" \/><\/li>\n<li>Check if the website still works. If not, restore your .htaccess file and try again.<\/li>\n<\/ol>\n<\/li>\n<li>Congrats, your Drupal is boosted. If you feel like you need to troubleshoot the <a href=\"https:\/\/drupal.org\/node\/1459690\" target=\"_blank\" rel=\"noopener\">Boost module installation<\/a>, click on the link.<\/li>\n<\/ol>\n<p>This shows a flow Drupal Boost will add:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4043 size-medium\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization47-260x300.jpg\" alt=\"Flow Drupal Boost\" width=\"260\" height=\"300\" \/><\/p>\n<h2 id=\"client\">Client optimization<\/h2>\n<p>The client can proactively work with multiple subdomains to load media faster. When a client downloads data too slow, it does not hurt to see with the Firefox plugin Firebug what exactly is to be loaded. If there are, for example, more than 50 separate items are to be loaded, it may be appropriate to point out the following:<\/p>\n<h5>Simultaneous Browser Connections<\/h5>\n<ul>\n<li>IE7: 2 simultaneous connections<\/li>\n<li>IE8: 6 simultaneous connections<\/li>\n<li>Google Chrome: 6 simultaneous connections<\/li>\n<li>Mozilla Firefox: 8 simultaneous connections<\/li>\n<\/ul>\n<p>This means that when there are 50 items to be loaded, it will slow down the loading time, considering all the actions put on hold until a connection is made available. Only then will the next element of your site be loaded and so on until all items are loaded. Of course the speed depends on the size, too.<\/p>\n<h5>Ways to speed it up:<\/h5>\n<ul>\n<li>Using CSS sprites<\/li>\n<li>Load of elements through individual (sub) domains<\/li>\n<\/ul>\n<h6>CSS sprites:<\/h6>\n<p>A CSS sprite can counteract this because then there is only one image file to be loaded, resulting in fewer connections are required and often the total size can be reduced.<\/p>\n<p>Click on the link for <a href=\"http:\/\/css-tricks.com\/css-sprites\/\" target=\"_blank\" rel=\"noopener\">more information on CSS sprites<\/a><\/p>\n<h6>Use of (sub) domains in order to load into elements:<\/h6>\n<p>A second way to increase the loading time in your code is, for example, by using <a href=\"https:\/\/www.combell.com\/en\/help\/kb\/7998\/\">multiple sub-domains<\/a>. Your browser limits the number of concurrent connections per domain, but the browser will see domainname.be, css.domainname.be, images.domainname.be and consider all these as a separate domain, which gives you a higher number of simultaneous connections.<\/p>\n<p>For example, by having the images be downloaded using images.domeinnaam.be and css files via css.domeinnaam.be, you can speed up the loading time because &#8211; files will run simultaneously with the connections bypassing your browser\u2019s limitations. With this method you can actually realize three times as many simultaneous connections.<\/p>\n<h2 id=\"aggregate\">Install Aggregate Cache<\/h2>\n<ol>\n<li>Prepare\n<ul>\n<li>CLEAN URLs must be enabled.\n<ul>\n<li>Enable in Search &amp; Metadata &gt;&gt; Clean URLs<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4044 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization48.png\" alt=\"Clean URLs\" width=\"465\" height=\"182\" \/><\/li>\n<\/ul>\n<\/li>\n<li>CSS \/ Javascript Aggregation must be enabled.\n<ul>\n<li>CSS \/ Javascript Aggregation is in the Configuration &gt;&gt; Development, under Performance. Make sure you tick the following:\n<ol>\n<li>Aggregate and compress CSS files.<\/li>\n<li>Aggregate JavaScript files.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4045 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization49.png\" alt=\"Configuration\" width=\"100\" height=\"29\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4046 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization50.png\" alt=\"Development &gt; performance\" width=\"661\" height=\"116\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4047 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization51.png\" alt=\"Bandwidth optimization\" width=\"862\" height=\"193\" \/><\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Download and install\n<ol>\n<li><a href=\"https:\/\/drupal.org\/project\/agrcache\" target=\"_blank\" rel=\"noopener\">Download Aggregate Cache<\/a> by clicking on the link.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4055 size-medium\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization59-300x36.png\" alt=\"Download Aggregate Cache\" width=\"300\" height=\"36\" \/><\/li>\n<li>Install in \/sites\/all\/modules<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4049 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization53.png\" alt=\"\/sites\/all\/modules\" width=\"842\" height=\"21\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4050 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization54.png\" alt=\"\/sites\/all\/modules\" width=\"631\" height=\"26\" \/><\/li>\n<li>Enable the module from the Modules section of your backend.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4051 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization55.png\" alt=\"Modules\" width=\"81\" height=\"27\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4052 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization56.png\" alt=\"Enable the module\" width=\"1356\" height=\"139\" \/><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2 id=\"render\">Manage Render blocking resources.<\/h2>\n<p>Do the adjustments below to make the browser start rendering faster, and the load time to decrease significantly.<\/p>\n<h5>Move Javascript location<\/h5>\n<p>Place Javascript in the footer of the website so that it will be loaded later in the process (after the page is largely rendered)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4053 size-medium\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization57-300x300.png\" alt=\"Javascript\" width=\"300\" height=\"300\" \/><\/p>\n<h5>CSS inline<\/h5>\n<p>Inline only the most critical CSS code in the theme files and leave the rest load asynchronously via LoadCSS (refer to this https:\/\/github.com\/filamentgroup\/loadCSS)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4054 size-medium\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization58-300x190.jpg\" alt=\"CSS inline\" width=\"300\" height=\"190\" \/><\/p>\n<h5>Using async\/defer<\/h5>\n<p>The module allows for critical JavaScript code to be put inline.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.drupal.org\/project\/magic\" target=\"_blank\" rel=\"noopener\">Download the &#8220;Magic&#8221; module<\/a> by clicking on the link.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4055 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization59.png\" alt=\"Download the &quot;Magic&quot; module\" width=\"648\" height=\"77\" \/><\/li>\n<li>Install in \/sites\/all\/modules<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4056 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization60.png\" alt=\"\/sites\/all\/modules\" width=\"814\" height=\"23\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4057 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization61.png\" alt=\"\/sites\/all\/modules\" width=\"607\" height=\"24\" \/><\/li>\n<li>Enable the module from the Modules section of your backend.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4058 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization62.png\" alt=\"Modules\" width=\"81\" height=\"27\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4059 size-full\" src=\"https:\/\/www.combell.com\/en\/help\/wp-content\/uploads\/2019\/11\/Drupal-General-optimization63.png\" alt=\"Enable the module\" width=\"1364\" height=\"215\" \/><\/li>\n<\/ol>\n<p>A couple more tweaking options are:<\/p>\n<ul>\n<li>Concatenation of files (such as CSS files)<\/li>\n<li>Put essentials (of js, css and others) inline the PHP files.<\/li>\n<li>CSS Spriting<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Drupal is one of the most popular content management systems. It can handle small and large websites equally well, with a little optimization. This article will help you prepare your CMS to handle large traffic without losing on speed. The first part of this article will show you standard optimization&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[47,4],"ht-kb-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb\/9"}],"collection":[{"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":22,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb\/9\/revisions"}],"predecessor-version":[{"id":2598,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb\/9\/revisions\/2598"}],"wp:attachment":[{"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb-category?post=9"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}