开发者

Jquery or javascript event on document header load

Is there any Jquery or javascript event available on document header load and not on document load ?

I created two sites,

  1. desktop.example.com is for desktop and
  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜