I’m using a location.reload() with JQUERY to refresh when a user changes language.
I wanted to ask if its possible to have a callback after location.reload()?
I kind of assume not as it refreshes the page but it might be possible.
Please let me know.
thx
I doubt that it is, however I believe that there is another solution to your problem. Cookies. If you were to use a cookie to indicate that the user had changed languages you can then perform the logic you want upon seeing that cookie. That approach could work. If you needed to have early javascript interception you might need to have your javascript at the top of your html page and outside of any document.load or document ready functinons so that it evaluates quickly.
This does seem like hackery to me, so althought I have proposed a work around for your question I dont stand behind the recommending the approach.