uzairfarooq / arrive

Watch for DOM elements creation and removal
MIT License
874 stars 99 forks source link

Remove dependency on jquery-2.1.0.min.js #76

Open CalvinWu4 opened 4 years ago

CalvinWu4 commented 4 years ago

I want to publish a Firefox extension using this library but I got this: This add-on uses arrive.min.js library which contains jQuery version 2.1.0. jQuery versions older than 3.0 are no longer allowed in extensions. These versions are not supported by the jQuery team and may contain security vulnerabilities

parasharrajat commented 4 years ago

You don't need to use the jQuery at all. It's optional. Use vanila javascript to refer to dom nodes. If the error due to that library install jquery with original package. Then you can use the arrive.min.js directly into your scripts. no need to do npm install.