How can we Help?

Why It Takes Time to Publish Changes in Visual Designer?

 

Introduction

Why Publishing Takes Time

Benefits of Pre-Compiled Templates

Introduction

Visual Designer allows you to edit your website template without writing any code. You can easily edit different sections of the template with a simple click. Not only that, but you can also instantly preview the changes that you have made in the template. Simply click on a specific section of your template (i.e., Header, Footer, Menu, Featured Section, Logo) to change its color (Background/Foreground), layout, style, etc. After making all the changes, you need to save and publish the template.

When you click on the “Publish” button to publish the changes, it takes approximately 7 to 11 minutes to reflect the changes on the website. This is because we are using Angular 8 to build the frontend. Angular 8 takes time to compile the entire template code and execute different processes during publishing the template. Which makes the template source code robust and also enhances the website performance.

 

Why Publishing Takes Time

Once you made the necessary changes in the template using the Visual Designer and then click on “Save” and then “Publish”, we do a lot of things to achieve the changes on the frontend website. The entire template code is compiled and the following process is executed when you click on the “Publish” button.

  • Visual Designer generates each component for all the pages as per the customization done.
  • Generates all the widgets for each page
  • Writes the actual text/image changes into the files
  • Add the routing and SEO metadata for each page
  • Does the production build which internally compiles the application first and then makes a build
  • Moves the build files into a dedicated path for each website
  • Overall, it takes 7 to 11 minutes to publish the changes. Moreover, the publishing time also depends on the number of pages and widgets on the website.

 

Benefits of Pre-Compiled Templates

Even though the entire process and the compilation of the template code take time during the publishing procedure, it has the following advantages. 

  1. It is much faster, as we are writing the changes into the file system.
  2. It is more secure, as the template source code is encoded, minified. Hence, it’s very difficult to be hacked.
  3. The template source code can be easily moved to any other server and run from there.