The extension does not start immediately after installing XPI

jQuery works as expected but throws an exception which is fatal only immediately after installing XPI.