π β‘ For 3rd-party Developers: Update Your Widget Dependencies for Better Performance! #30072
Pinned
nicholaszein
announced in
Announcement
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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