-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onDone call to soon before DOM loaded #437
Comments
Per the docs:
So I'd expect querying the DOM for content updated by SPF to succeed. Do you happen to also be loading JS that modifies the DOM in any way? For example, you use SPF to load scripts that generate content client-side. |
@rviscomi , Thank you for your response. I even tried with just Is there any other possibility causing this issue beside when we load new client side script by SPF ? |
Would you be able to post a little bit of markup along with the script tags containing javascript containing the call to I have a feeling that it could be a ordering issue. It would help us understand the issue a bit more clearly if you could maybe post a fiddle that reproduces the bug? cheers :) |
@VarinderS i am working in a big project and continue from previous developer. Let me take a while to reproduce it in small part. If you believe i should not got this issue perhaps it is conflict with other libraries, i will check it when trying to reproduce it in small part. Actually it is looks a simple code to me of SPF usage in my project. It is just something like :
But again, please give me time to reproduce in small part. For additional information, i am using SPF version : 2.4.0 |
sure thing, question: how does that markup look like from the |
Hi, i have problem with
onDone
callback which i were though it should be like jQuery $(document).ready(). However seem to meonDone
callback sometimes call to soon before new loaded DOM is ready ( rendered to page ). So when i call for example jQuery$('.new-loaded-element')
some times it is not found, i must put somesetInterval()
check untill new element is appear. It is feel hacky and we can't make general function to call after the new DOM loaded by SPF is ready.Hopefully SPF can have callback which called when the new DOM is really loaded to the document. Is that possible?
The text was updated successfully, but these errors were encountered: