AI Ready badge for Premium Addons for Elementor
Black Friday Sale

Save Up to 40% Off

Menu Close
Close
Elementor Recent Posts Notification widget bell icon
2
What's New?
Elementor Dynamic Assets Generate Loading

Elementor Dynamic Assets Generate Loading

Dynamic Assets Generate builds one CSS file and one JavaScript file per page from the Premium Addons widgets that page actually uses. A page with two Premium Addons widgets loads the code for those two widgets instead of the whole plugin stylesheet.

The option is on by default, so most sites are already using it. Switching it off makes Premium Addons fall back to loading its combined stylesheet and script instead. Either way your widget settings stay exactly as they are.


Requirements


What Dynamic Assets Generate does

With the option off, any page carrying a Premium Addons widget loads the plugin’s combined stylesheet and script. Those files cover every widget in the plugin, so a page using one widget still downloads the CSS for all of them.

With the option on, Premium Addons reads which of its widgets sit on the page and writes a file containing only their code. The page loads that file instead of the combined one.

Smaller files mean less to download and less CSS for the browser to parse, which helps your page loading times. For the wider picture, read our guide on improving Elementor website performance.


Checking that it is on

A new install has the option on already. Check it here if your site was set up a while ago, or if someone turned it off:

  1. Open your WordPress dashboard.
  2. Go to Premium Addons.
  3. Open the Widgets & Add-ons tab.
  4. Confirm Dynamic Assets Generate is switched on.
The Dynamic Assets Generate option turned on, with the Clear Generated Assets button beside it.

If you have just switched the option back on, your pages are still serving files built while it was off. Clear the generated assets once so every page rebuilds. The next section covers how.


What gets generated and where

The files are written to wp-content/uploads/premium-addons-elementor/ and named after the post ID: pafe-123.css and pafe-123.js. Premium Addons creates the folder the first time it needs to write to it.

A page gets its files written when you update it in Elementor, or on its first visit if no files exist yet. Some pages get a CSS file and no JavaScript file, because a few widgets load their scripts separately. Both cases are normal.

Draft and pending posts are skipped until they are published. So are pages not built with Elementor.


Compatibility

Elementor Theme Builder

Premium Addons widgets placed in a Theme Builder header, footer, single or archive template get their assets on every page that template renders on, not only inside the template editor. This needs Elementor Pro, which is where Theme Builder lives.

A template built before you turned the option on has no widget list stored yet. Open it and click Update once to build it.

Elementor popups

A Premium Addons widget inside an Elementor popup loads its assets when the popup does. As with templates, a popup saved before the option was turned on needs one Update to register its widgets.

Caching plugins

Each generated file is versioned by the page’s last modified time, so caching plugins and CDNs can cache it and only fetch a new copy after you edit the page.

Clearing assets from Premium Addons also purges LiteSpeed Cache automatically. Every other caching plugin needs its own cache cleared separately, so make that your second step whenever you clear Premium Addons assets.

WP-Optimize

If WP-Optimize minifies the generated files and your styling breaks, exclude them. Go to Premium Addons > Integrations and turn on Exclude Dynamic Assets from WP-Optimize Minification.

This option only appears when WP-Optimize is active on your site. If you do not use WP-Optimize, the row is not there.

The Exclude Dynamic Assets from WP-Optimize Minification option at the bottom of the Integrations tab.

Clearing generated assets

You can clear the files in two places. Both need an administrator account.

  • The Clear Generated Assets button next to the Dynamic Assets Generate option, in Premium Addons > Widgets & Add-ons. This clears the files for the whole site.
  • The Clear PA Assets menu in the WordPress toolbar, while viewing your site. It offers:
    • Clear Page Generated Assets, for the page you are looking at. This appears on single posts and pages.
    • Clear All Generated Assets, for the whole site.
The Clear PA Assets menu open in the WordPress toolbar, showing Clear Page Generated Assets and Clear All Generated Assets.

Premium Addons also clears the files on its own in these cases:

WhenWhat is cleared
You save any change on the Widgets & Add-ons tabEvery file on the site
Premium Addons or Premium Addons PRO is updatedEvery file on the site
Premium Addons is deactivatedEvery file on the site
A post or page is moved to the trashThat post’s files

Files rebuild by themselves on the next visit, so clearing them costs you a single slower page load.


Troubleshooting

Styling looks broken right after switching the option on

Your pages are still serving files built under the old setting. Use Clear All Generated Assets, then clear your caching plugin.

A change to a page is not showing on the frontend

Open that page on your site and use Clear Page Generated Assets from the toolbar. If you use a caching plugin other than LiteSpeed Cache, clear its cache too.

A Theme Builder header or footer is unstyled

Open the template in Elementor and click Update. Theme Builder templates need Elementor Pro.

A widget inside a popup is unstyled

Open the popup in Elementor and click Update.

Styling dropped right after a plugin update

Updating Premium Addons clears every generated file on purpose, so the new version’s code reaches your pages. Each page rebuilds its file on the next visit. Clear your caching plugin if the old files are still being served.

No files appear in the uploads folder

Premium Addons cannot write the files if wp-content/uploads/ is not writable, and the page then loads no Premium Addons styling at all. Ask your host to check the folder permissions.

WP-Optimize is minifying the files into something broken

Turn on Exclude Dynamic Assets from WP-Optimize Minification in Premium Addons > Integrations.


If you still need any further assistance, feel free to contact Premium Addons support team. We would be more than glad to help!

This Post Has 8 Comments

  1. Ahmed

    This feature causes me trouble with all cache plugins i ever used, Flying press, breeze, wp rocket and even perfmatters… Guys I need help with this! I had to disable it

    1. Abanob

      Please send us a message on our website through the chat icon on the bottom right so we can check this for you.

  2. FahimFKamal

    If I click “Clear All Generated Assets”, will my website’s all PA section of the page remove?

    1. Abanob

      Hi Fahim,

      Clear All Generated Assets will not remove any content that you already built using Premium Addons. It will just clear the cache of the generated CSS/JS files to make sure the generated files match the premium elements you have on each page.

  3. Edward

    Hello. I created a template for the cover with vertical scroll PA, but when I make changes to each template the cover is not updated for the mobile version. I deleted the cache and flushed the generated resources from PA and it still doesn’t update the changes. I need help to solve this problem.

  4. samrat

    hi when i Cleared All Generated Assets after my site not loading any css showing error on site

    1. Abanob

      Our devs would be glad to check. Please open a ticket on our support system from here.

Leave a Reply

Premium Addons for Elementor plugin logo

Stay Updated

Subscribe to our newsletter to receive the latest updates and features.