firefox compatibility, performance improvement