# Optimize theme

## How to best optimize for Minimog theme?

**1. Disable Gutenberg assets:** Usually you only use gutenberg blocks on blog and post pages. So disable them in rest pages to improvement page loading.

* Open functions.php in your-site/wp-content/themes/minimog-child
* Then add this following code:

```css
function minimog_child_disable_gutenberg_wp_enqueue_scripts() {
  if( ! is_singular('post') ) {
     wp_dequeue_style('wp-block-library');
     wp_dequeue_style('wp-block-library-theme');
     wp_dequeue_style('wc-blocks-style');
  }
}
add_action('wp_enqueue_scripts', 'minimog_child_disable_gutenberg_wp_enqueue_scripts', 100);
```

**2. Disable WordPress global style:** <https://github.com/WordPress/gutenberg/issues/36834>

* Open functions.php in your-site/wp-content/themes/minimog-child
* Then add this following code:

```css
function minimog_child_remove_wp_global_styles() {
     remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
     remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
}
add_action( 'init', 'minimog_child_remove_wp_global_styles' );
```

#### 3. Disable unused Extendify module from Redux Framework plugin. (This method only applies to Redux Framework plugin version < 4.4.0)

* Download this plugin file here: <https://drive.google.com/file/d/1MQz45ZL1JkMmt5onCdSqYeTFtpXMssUW/view?usp=sharing>
* Then upload it to your-site/wp-content/mu-plugins/

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

## Config Elementor settings to get best performance

#### 1. Disable default font:&#x20;

Avoid duplicate fonts load by Elementor and Minimog

1. Go to Elementor -> Settings -> General -> Tick on Disable Default Fonts box.

![](/files/sQOKO990FFZaE8yIhW8r)

2\. Edit any page with Elementor -> Site Settings (Click on Bars icon) -> Global Fonts -> System Fonts => Choose font family as ‘Default’ for all settings: Primary, Secondary, Text, Accent

![](/files/lPF5L3l20LTGK00FtIrq)

#### 2. Disable Font Awesome 4 Support&#x20;

New websites don’t need support old Font Awesome version. So choose ‘No’ to disable it then reduce some assets loading for your website.

![](/files/iMzDygfxnJzAgN7XJtQV)

#### 3. Enable Improved Asset Loading&#x20;

The “Improved Asset Loading” mode reduces the amount of code that is loaded on the page by default

![](/files/DnrA0syDu5NMfzNqZxr2)

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

## How to choose best server for Minimog theme?

**1. Hosting**

We recommended use Nginx hosting.

**2. CDN service**

We high recommended use KeyCDN service (<https://www.keycdn.com/>)

**3. Used light weight images format Webp**

By using WebP format images, you can save over a half of the page weight without losing quality.

To convert images to WebP format, you can use the [Converter for Media](https://wordpress.org/plugins/webp-converter-for-media/) plugin (Free)

<figure><img src="/files/VxRjZWI8nySUiloi7Sca" alt=""><figcaption></figcaption></figure>

Here are instructions for using the Converter for Media plugin to convert images:

<figure><img src="/files/32LrHwLSaXnQxo2ytOgJ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KByWNJdwMVutTZCmFlvE" alt=""><figcaption></figcaption></figure>

**4. Caching**

We recommended use combine these plugins:

Redis Cache: <https://wordpress.org/plugins/wp-redis/>

Nginx Helper: <https://wordpress.org/plugins/nginx-helper/>

Autoptimize: <https://wordpress.org/plugins/autoptimize/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://minimog-wp.gitbook.io/minimog-ecommerce-wordpress-theme/update/optimize-theme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
