I've been using code with @run-at document-start, which calls GM_addStyle() to add CSS before the screen paints, thereby avoiding any flash of unstyled content. This was working well in Firefox 3.6.
I recently updated to FF 12, and now I find that this no longer works. Calls to GM_addStyle() in document-start scripts fail silently, with no way to detect if it worked (that I can tell). I tested in Firefox 10 and 11 (portable) and see the same behavior. Is this a new limitation in Firefox? Does anyone know why it worked in previous versions? Barring any way to make it work, is there a way to *detect* if it failed, before DOMContentLoaded? For now, I'm going to add a wrapper function that will delay calls to GM_addStyle() until DOMContentLoaded, but I'd really like to have a way to insert the CSS before the page initially paints, to avoid ugly re-rendering when the styles kick in. Any thoughts? Thanks! Matt Kruse -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
