jQuery page transition and browser history

前端 未结 4 593
自闭症患者
自闭症患者 2020-12-09 22:34

I\'m working with jQuery to have a fade-in effect on my html page, which works just fine. However, when I hit the back-button in my browser, I go to the right url but get a

4条回答
  •  醉酒成梦
    2020-12-09 22:45

    Normally the pages are cached when you hit the back button, your $(document).ready() function will not fire.

    Try setting no-cache for the page.

提交回复
热议问题