Aug 26, 2017 · 1 min read
Hi Julian, nice article!
How do you send client information, such as browser language and width, to the server before the onPageLoad is executed?
I need to tell the server to render a spanish/english version and a small/full screen version, but I cant see how.
I tried a script on the html head to write (for example) document.location = ‘/mobile/es’ and take this information on the server via pathname, but doing that the page is always reloading in an infinite loop.
If not possible, why not simply get the html through a method call and then set the innerHtml on the client? Why is it necessary this package if thats a valid approach?
Thanks!
