Load script before document load
On a registration page I have a "Sign in with Facebook" button. When I click it I get a "Page Load Error".
Added to the registration page:
- <div data-role="page" id="register">
- <script>
- $("#register").live('pageinit',function() {
- if (window.location.hash == "#_=_")
- window.location.hash = "";
- });
- </script>
- </div>
but that didn't make a difference. Any ideas how/where this should be loaded?
Thanks.