How to load a Scripts or Styles, only the page that used this widget? #18679
Replies: 3 comments 5 replies
-
For my use-case I've added that into the render function. Then the scripts are only included in the page where the element is rendered. |
Beta Was this translation helpful? Give feedback.
-
Hi @PGdevsoft We have this ability built-in. Read those doc:
Also see this example: https://developers.elementor.com/docs/controls/frontend-available |
Beta Was this translation helpful? Give feedback.
-
I'm having some issues How to load Now enqueue the styles in the footer. |
Beta Was this translation helpful? Give feedback.
-
How to load a Scripts & Styles, only the page that used this widget?
Ref.
https://developers.elementor.com/add-javascript-to-elementor-widgets
Now if register Styles or Scripts by this function
Scripts or Styles include every page.
——————————————
I Need to include a Scripts or Styles, only the page that used this widget.
Because affect with web performance page speed
Beta Was this translation helpful? Give feedback.
All reactions