It works on every page EXCEPT for index.html. And even more strange, it does work on index.html when you first go to the site or refresh it, but if you use a button to get back to index.html, it just doesn't run resizeItems.
Triggered on the "toPage" we are transitioning to, before the actual transition animation is kicked off. Callbacks for this event will receive a data object as their 2nd arg. This data object has the following properties on it:
You should put your script in a file linked from <head>.
There are several problems with putting in the page where you have it. For example, every time you load that page, you will add an additional registration. If you've loaded the page 10 times, now you will be called resizeItems 10 times for every page!
You're also not qualifying the page with a selector. Did you want to do this for EVERY page (which is what it does now) or only for the home page?
I put resizeItems() in js/my.js. I want it to run on every single page that loads, including the homepage.
Maybe I'm putting the call to resizeItems() in the wrong place. Should it go in my.js or should it go in the <head> of each page? Or somewhere entirely different?
Leave a comment on switzer's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic