rlr / dotjs-addon

[unmaintained] ~/.js for Firefox
BSD 3-Clause "New" or "Revised" License
144 stars 17 forks source link

Switch to using tabs for implementation #13

Closed jeffgca closed 12 years ago

jeffgca commented 12 years ago

We've noticed that page-mod implementations that use include: "*" can slow down Firefox a lot because the content scripts etc are injected into any document, not just the top-level document. Using the tabs module to inject into the top-level document only ( especially if you're injecting jQuery ) eases some of the pain.

jeffgca commented 12 years ago

I should add, that using tabs removed the possibility of targeting an iframe.

rlr commented 12 years ago

Awesome, thank you!