Is there any Jquery or javascript event available on document header load and not on document load ?
I created two sites,
- desktop.example.com is for desktop and
- m.example.com for mobile version.
Actual开发者_如何转开发ly I want to detect user-agent and depending on it redirect page to mobile or desktop version of site.
No need for an event to trigger your redirect. Just place it directly in the <head>
element. In most cases the body won't even be rendered before it redirects.
精彩评论