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

"Too much recursion" error FF4 #2

Open
WraithKenny opened this issue Sep 1, 2010 · 7 comments
Open

"Too much recursion" error FF4 #2

WraithKenny opened this issue Sep 1, 2010 · 7 comments

Comments

@WraithKenny
Copy link

When the plugin is run in FF4 this error is reported and the rest of the scripts on the page don't run.

@WraithKenny
Copy link
Author

See the comments on api.jquery.com/load-event/ for solution/alternative.

@peol
Copy link
Owner

peol commented Sep 2, 2010

I think I got that fixed locally, but I got issues replicating the image caching bugs in IE at the moment, so I'll wait to push it to github before actually verifying everything's working.

@foscamf6
Copy link

I just ran into the recursion problem on FF3.6.10 (mac) too. It's inconsistent - it doesn't happen on every page load, and when it does it's on random elements. Using the workaround in the comments on the jquery api page (see above) until you push the update.

@peol
Copy link
Owner

peol commented Sep 28, 2010

Yes, as of now, you should be using either bind-event-before-setting-source approach, or the workaround on the API site. This plugin is right now busted without a clear solution, I'm afraid.

@jcljules
Copy link

The problem with this function is that it doesn't just bind to images - it adds this loader to every single element on the page. Change event.special.load to event.special.imgpreload, then bind an imgpreload event to the specific images you'd like to preload. Worked like a charm for me, in all browsers.

@chrihala
Copy link

chrihala commented Dec 3, 2010

jcljules's advice seems to work in Firefox 3.6 and Chrome 7. Thanks mate!

@jefferyto
Copy link

I have an experimental fork of this plugin at https://github.com/jefferyto/jquery.imgloaded/tree/pi . Can you give it a try? I'd like to get some feedback before submitting a pull request. Thanks!

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

6 participants