Went through some best practices of web standards, they suggested that, it is better to include the Javascript at the end of the body. Include the css at the start of the head.
-- Based on this suggestion, I need to change the injection of Javascript into the body element. It is possible using ScriptElement injection. But I am not able to attach any callback when I go with this approach.
Whereas ScriptInjector has the callback but this is injecting the Javascript into the head element by default. I am not able to change it. Any suggestion?
- Tham
On Tuesday, 20 January 2015 19:55:58 UTC+5:30, Thomas Broyer wrote:
On Tuesday, 20 January 2015 19:55:58 UTC+5:30, Thomas Broyer wrote:
Copy/paste? But may I ask you why body vs. head matters?
On Tuesday, January 20, 2015 at 2:03:07 PM UTC+1, Tham wrote:I would like to extend ScriptInjector for having my own Javascript injector. The current injector is injecting the script tag inside the head element by default.But I want to inject the script tag inside body element. And also I am willing to have the callback functionality. Is there any help?- Tham
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment