Reducing jquery by 95%
Reducing jquery by 95%
Hi,
I purchased webspace that allows me to write and upload custom javascript code. There are rules however such as no "src=", "includes", "replace", or remote script calling, to mention a few. Also the maximum allowed custom code is 40kb.
So the site doesn't permit me to reference jquery as such:
src="http://code.jquery.com/jquery-1.4.4.min.js"
nor does it allow me to copy and paste the minified version (too big).
However, all I need jquery for (at this time) is to add classes to elements by traversing the DOM.
So is it possible to identify just the piece I want and delete the rest of the code? This will reduce its size and eliminate the extraneous codes that are giving me uploading errors.
Please advice.
thanks in advance!