Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animsition stuck on loading #46

Closed
Lisser opened this issue May 30, 2015 · 11 comments
Closed

Animsition stuck on loading #46

Lisser opened this issue May 30, 2015 · 11 comments

Comments

@Lisser
Copy link

Lisser commented May 30, 2015

When I call the Animsition transition right after the document.ready event, it works just fine.

When I try to call the Animsition transition after loading content through an ajax call, it somehow hangs on the loading screen...

How could this happen?

@vincentdindon
Copy link

Same problem @Jesse592... any fix ?

@visualcookie
Copy link

I did discover this problem too in my last two projects. It only occurred on Safari and Safari on iOS.

@anishjajodia
Copy link

Same issue.

@stailer
Copy link

stailer commented Jul 1, 2015

Same problem

@stailer
Copy link

stailer commented Jul 2, 2015

Ok for me with this is my fix:

 return this.each(function () {

                var _this = this;
                var $this = $(this);
                var $window = $(window);
                var data = $this.data(namespace);


                data = null; // correction ok
                if (!data) {


                    options = $.extend({}, options);

                    $this.data(namespace, {
                        options: options
                    });

                    // no on load, but immediatly
                    //$window.on("load." + namespace + " pageshow." + namespace, function () {
                            methods.pageIn.call(_this);
                    //});


                    $window.on("unload." + namespace, function () { });
                    $(options.linkElement).on("click." + namespace, function (event) {
                        event.preventDefault();
                        var $self = $(this);
                        var url = $self.attr("href");
                        if (event.which === 2 || event.metaKey || event.shiftKey || navigator.platform.toUpperCase().indexOf("WIN") !== -1 && event.ctrlKey) {
                            window.open(url, "_blank");
                        } else {
                            methods.pageOut.call(_this, $self, url);
                        }
                    });
                }
            });

@blivesta
Copy link
Owner

blivesta commented Jul 5, 2015

@stailer Thank you for revising the program.

I'm now in the midst of preparing to update to v4.0.0-alpha.0, and may even be able to release it by the middle of this month.
#50

@stailer
Copy link

stailer commented Jul 6, 2015

Fantastic, i wait your new version ! 👍

@visualcookie
Copy link

Awesome. 👍

@blivesta
Copy link
Owner

@stailer
Copy link

stailer commented Sep 22, 2015

Thank you blivesta !

@differenceclouds
Copy link

Hi there. This issue is still happening for me in Safari...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants