inYOf4ceBook

By znerp Last update Nov 9, 2010 — Installed 135,447 times.

Takes a while to work

in
Subscribe to Takes a while to work 2 posts, 2 voices



Raffles Scriptwright

It's often the case that the script works only after mousing over many images. After it works once it works for most images, but it's getting it to work that first mouseover that seems to be hit-and-miss. Also, there's an awful lot of Ajax loading of data now, so perhaps you could add some code to rescan for thumbs when the DOM has been modified - I'm pretty sure there's an event for this. This would allow thumbs that have been added dynamically to also work with the script.

 
znerp Script's Author
it's getting it to work that first mouseover that seems to be hit-and-miss.

I've not noticed this behaviour, but then again I don't personally use Facebook much. I'll look out for it, but I don't know quite what I can do.

perhaps you could add some code to rescan for thumbs when the DOM has been modified

I've put the entire script in a function called inYoFace and that gets called on the DOMNodeInserted event, so I believe that dynamically added thumbs do work (from my experience with galleries and also my other script that loads entire galleries on the single page).

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel