Thank you very much Thomas, so putting the that js <script>..</script> inside the <body> will NOT cause any later problems right?
It is common practice to put the <script> tag at the very end of your <body> tag, right before </body>, because <script> tags block loading the rest of the web page until the script is loaded.
But can we have a more professional way to solve the problem? Can we use Code Splitting in the EntryPoint method?
Shouldn't GWTP already do some intelligent code splitting for your?
Maybe you should also check if your server sends files gzip compressed to the client. For example our app has a 2 MB initial download (initial fragment, left over fragment, first split point) but thanks to gzip compression the browser only downloads 500 Kb.
-- J.
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