Minimize Magento downtime when deploying changes in production mode

Here are a few suggestions to minimize downtime on Magento, whenever you need to deploy changes in production mode. Changes on phtml template files in the child theme(no downtime) All templates are updated in folder var/view_processed (no need to delete it first) Changes in less, css, js files in the child theme(no downtime if css and js are served from[…]

Read more

Add custom javascript to all pages on your theme

Use custom javascript The best solution to add custom javascript to all pages of your website is to create a javascript module and load it via requireJS. This can be done by creating a requirejs-config.js file in your theme folder with the following content: This file tells requireJS to load a custom.js file located in folder Theme_Vendor/Theme_Name/web/js. Include in that[…]

Read more