Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

148
Views
Chrome Extension: What is the alternative of jQuery for DOM operations in background.js?

This new version 3 is making my development process very difficult. I am fetching a page HTML in background.js and now I want to perform certain operations like fetching links based on className etc. I tried to load jQuery but it gives error:

bg-loader.js:4 TypeError: Cannot read properties of undefined (reading 'createElement')
    at ce (jquery.js:2:7312)
    at jquery.js:2:23143
    at jquery.js:2:23839
    at jquery.js:2:220
    at jquery.js:2:225
    at bg-loader.js:2:5

I use the following code in bg-loader.js:

importScripts('jquery.js', 'background.js' /*, and so on */);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!