When is the Elementor DOM ready within the editor? #25398
scrollingthrough
announced in
Developers Community
Replies: 2 comments
-
Good talk. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Did you ever resolve this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a few issues that I'm going through right now, the goal being to enqueue a script after Elementor's done with enqueuing its own things and then allow me to make use of the
$e
global, as well as theelementor
one, all of this after the Elementor DOM's loaded.I'm enqueueing my script as such:
It gets loaded. Inside the JS file:
And that's when I hit the issue. Nor the dom, nor either of globals are present and ready for use. I can see that my script is loaded BEFORE Elementor's.
I don't get it. Exactly where should I
wp_enqueue_script
my script such that I have access to these things if I want to work with Elementor?Beta Was this translation helpful? Give feedback.
All reactions