Yes. You can use chrome.extension.getURL("path/to/foo.js") to get the
full URL to a script file inside your extension. Once you have that,
you can fetch it with XMLHttpRequest, then eval() the contents.- a On Tue, Oct 13, 2009 at 12:23 PM, Edwin Khodabakchian <[email protected]> wrote: > > Hi, > Is there any way in a content script to dynamically load scripts > packaged in the extension? The goal here is instead of listing a large > number of js files in the manifest.json and having to load everything > at first? > Thanks, > Edwin > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" 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/chromium-extensions?hl=en -~----------~----~----~----~------~----~------~--~---
