Non-DOM subset of jQuery

I would like to use a number of useful methods from jQuery to Web Worker where there is no access to windowor objects document.

In particular, I would like to be able to use methods such as $.extend(), $.ajax()and the entire system $.Deferred(). I obviously would not need any DOM traversal and manipulation methods, so I am not looking for a solution like JSDOM.

I can extract non-DOM parts from jQuery myself, but this is a pain to maintain. Are there any jQuery distributions or build scripts available that just create parts other than the DOM?

+5
source share
2 answers

: https://github.com/kpozin/jquery-nodom.

$.Deferred() $.ajax() Web Worker. , .

: jquery.nodom.js

+3

jQuery - , git, , , ( , jQuery ) , jQuery . , . , - .

0

All Articles