You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elementor now provides a more efficient way to manage widget dependencies, ensuring your extensions load only what they need β improving performance and reducing unnecessary assets. If you havenβt updated your code yet, nowβs the time! π
π What You Need to Do:
get_style_depends() β Use this method to declare the styles your widget relies on, preventing unnecessary CSS from loading site-wide.
get_script_depends() β Ensure your scripts are only loaded when needed by defining them in this method.
By implementing these, youβll optimize your widgets and contribute to a faster, more efficient Elementor experience. πͺ
Make sure you have read our Developers Documentation, followed our Best Practices guide, our Recent Deprecations list, and subscribed to our Developers Newsletter:
π Developers Center: Learn how to leverage the wide-range of tools and options Elementor has to offer. https://developers.elementor.com
π¬ Developer Updates: Subscribe to the Developers Newsletter to receive the latest updates, feature releases, and important announcements directly in your inbox. https://elementor.com/pages/addon-developers-corner/
type/developer-apiIndicates when a topic is related to the Developer API and Documentation.mod*[Temp.] For internal use only.announcementUsed for general announcements.
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there Devs! π
Elementor now provides a more efficient way to manage widget dependencies, ensuring your extensions load only what they need β improving performance and reducing unnecessary assets. If you havenβt updated your code yet, nowβs the time! π
π What You Need to Do:
get_style_depends()
β Use this method to declare the styles your widget relies on, preventing unnecessary CSS from loading site-wide.get_script_depends()
β Ensure your scripts are only loaded when needed by defining them in this method.By implementing these, youβll optimize your widgets and contribute to a faster, more efficient Elementor experience. πͺ
For full details and additional scenarios, check out the Widget Dependencies Documentation.
Regards
Make sure you have read our Developers Documentation, followed our Best Practices guide, our Recent Deprecations list, and subscribed to our Developers Newsletter:
π Developers Center: Learn how to leverage the wide-range of tools and options Elementor has to offer.
https://developers.elementor.com
π οΈ Best Practices: Follow our Best Practices Guide to align your addons with Elementor's standards and optimize performance.
https://developers.elementor.com/docs/getting-started/best-practices/
π¨ Recent Deprecations: Stay informed about Recent Deprecations to update your code accordingly and maintain compatibility.
https://developers.elementor.com/recent-deprecations/
π¬ Developer Updates: Subscribe to the Developers Newsletter to receive the latest updates, feature releases, and important announcements directly in your inbox.
https://elementor.com/pages/addon-developers-corner/
Beta Was this translation helpful? Give feedback.
All reactions