Clean HTML & Quick Loading Time with Spectra

Speed Up!

From the past few updates, we have been working on speed improvements for Spectra.

Initially, we worked on reducing the CSS file size to almost half. And then loading CSS and JS only when the Spectra block is in action on a particular page.

But we are not done yet! We have now optimized the way Spectra adds the required CSS to the page.

This will speed up your Gutenberg page even more!

Let’s see how this update will work for you.

How Did Spectra Work Before?

When you design a page with Spectra blocks, it generates dynamic CSS to make everything work. This CSS is added inline to the page source code.

Before generate CSS file

Inserting CSS this way was adding extra volume to the page HTML. That had a slight performance impact on page load speed.

How Spectra Will Work with v 2.1.1 and Above

With the new Spectra updates, the required CSS will now be added to a separate CSS file pulled from the page source code.

That means you will not see bulkier CSS in the page source code anymore. All the styling will be served from a separate file.

This reduces file size and should reduce the performance penalty you may have experienced in previous versions.

Once you update the plugin to version  2.1.1, you will see an additional option on the Spectra settings page.Navigate to Settings > Spectra.

Go to Spectra settings

Once you enable it – the inline CSS will not show up in the source code anymore.

Enable file generator

The inline CSS will now be added as a separate file.

After generate CSS file

This will help browsers cache needed CSS files so that visitors can retrieve the page faster.

How Spectra Was Working until Now?

When you design a page with Spectra blocks, a dynamic CSS is generated by the plugin. This CSS is added inline to the page source code.

Spectra Inline Dynamic CSS

But inserting CSS this way was adding extra volume to the page HTML. That was slightly putting a load on page speed.

How Spectra Will Work with v1.14.0 and Above?

Required CSS will now be added to a separate CSS file and this file will be pulled from the page source code.

That means you will not see bulkier CSS in the page source code anymore. All the styling will be served from a separate file.

Once you update the plugin to version 1.14.0, you will see an additional option on the Spectra settings page.

Spectra CSS File Generation Update

Once you enable it – the inline CSS will not show up in the Source Code anymore.

The inline CSS will now be added as a separate file

Spectra CSS in External File

This will help browsers to easily cache needed CSS file so that visitors can retrieve the page faster.

Try the Latest Version of Spectra!

You will get an update notification for Spectra on the WordPress update page. Just update the plugin, enable the option and see how it makes your Spectra pages lighter and faster.

Notable features in the current version of Spectra.

  • Block presets
  • Container block
  • Copy paste styles
  • Add custom CSS
  • Image gallery block
  • Counter block

If you have any questions, contact us through the support portal.

We are dedicated to making Spectra faster and better with every update. Our team will keep working hard to keep improving everything and make Spectra the best page builder you can use.

Stay tuned until next time!

Cheers!

Disclosure: This blog may contain affiliate links. If you make a purchase through one of these links, we may receive a small commission. Read disclosure. Rest assured that we only recommend products that we have personally used and believe will add value to our readers. Thanks for your support!

21 thoughts on “Clean HTML & Quick Loading Time with Spectra”

    1. Hi Kathirvel,

      The plugin loads two types of CSS –
      1) Common CSS for all blocks – this is generated as per active blocks in the backend.
      2) Dynamic CSS – this is generated on every page if and only if Spectra block is used.

      Both CSS, common and dynamic, are enqueued if any of Spectra blocks are used.

      But indeed we are continuously working to make Spectra faster and lightweight.

      Thanks for your suggestion 🙂

  1. Hi, that new feature works well except for 1 thing,

    icon lists turned to plain text and huge black icons,

    had to turn that option off

    1. Hello there,

      We haven’t seen such an issue due to this feature.

      Could you open a support ticket with the issue so that we can take a look at your end and help you accordingly?

      Regards,
      Suman

  2. after 6 years doing websites and used a lot of plugins and thousands of elements, I recently start used this plugin and I really found The Ultimate Gutenberg Blocks with its few simple elements very beautiful and peaceful for my mind, but still, I want a paid version if possible in the future.

  3. Hi, can I add CSS to the Spectra style sheet or only to the customizer or theme style sheet? Where do I find the Spectra page specific style sheets? Is this a good idea or not?

  4. Can we request for some blocks to be added to the next update? I only want to use this blocks plugin if you can also add these blocks:

    Search Block (using WordPress default search) – Advanced Gutenberg has it.
    Ability to Hide/Show Blocks According to Role – some paid blocks have it.
    Show/hide Content Title in Gutenberg – EditorsKit has it.

    I’m also willing to pay for a premium version of the UG

    1. Hello,

      Thank you for dropping in your suggestions!

      We’d certainly love to hear more from you and see whether these can be added to our list of blocks. 🙂

      You can also write to us through our support center and share your thoughts about the same.

  5. Denny Plaggenburg

    Although a good idea, the activation of this setting is messing up my WordPress site big time (Astra theme). Any recommendations? It worked before, but after changing a few words the page has changed layout. When disabling the setting, the page again looks good.

  6. Hi Elvina, each css file is added with a different number, for example id=’uag-style-499-css’ which is a nightmare because each page has to load a completely new stylesheet every-time.
    My only solution is to dequeue and deregister every stylesheet for every page!!!
    Or is there a solution I am not seeing at the moment?
    Peter

  7. I turned it on, and all the styles didn’t work
    Turn it off, and it’s back to normal, I don’t know if this feature is meant to be funny.
    i use generatepress theme

Leave a Comment

Your email address will not be published. Required fields are marked *

Build Ultra High Performance
Websites, Without Coding

Whether you are a beginner, marketer, or professional, Spectra has the tools and resources you can rely on to succeed

Get Notified When Available

Note - You can purchase the Essential Toolkit now and easily upgrade to the Business Toolkit once it becomes available.

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Get your hands on Spectra Pro

Enter your name and email address to get access to Spectra Pro.