We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have html.erb file, loading two scripts .
<script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script> <script type='text/javascript'> console.log("window.embedded_svc...", window.embedded_svc); </script>
embedded_svc is part esw.min.js file. I expect window.embedded_svc print object, but it's undefined.
window.embedded_svc
This issue occurs only when I use render_async , it works well with regular render Note - I have added in initializers
render_async
RenderAsync.configure do |config| config.jquery = true # This will render jQuery code, and skip Vanilla JS code. The default value is false. end
Why script is not loading synchronously ?
The text was updated successfully, but these errors were encountered:
I have html.erb file, loading two scripts . <script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script> <script type='text/javascript'> console.log("window.embedded_svc...", window.embedded_svc); </script> embedded_svc is part esw.min.js file. I expect window.embedded_svc print object, but it's undefined. This issue occurs only when I use render_async , it works well with regular render Note - I have added in initializers RenderAsync.configure do |config| config.jquery = true # This will render jQuery code, and skip Vanilla JS code. The default value is false. end Why script is not loading synchronously ?
Sorry, something went wrong.
Are you also using Turbo or Turbolinks in the project? Here's how to configure it if you are:
No branches or pull requests
I have html.erb file, loading two scripts .
embedded_svc is part esw.min.js file. I expect
window.embedded_svc
print object, but it's undefined.This issue occurs only when I use
render_async
, it works well with regular renderNote - I have added in initializers
Why script is not loading synchronously ?
The text was updated successfully, but these errors were encountered: