Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I read this article Unobtrusive JavaScript with jQuery and I noticed these point

ID: 646251 • Letter: I

Question

I read this article Unobtrusive JavaScript with jQuery and I noticed these points in the slide page 11

some companies strip JavaScript at the firewall
some run the NoScript Firefox extension to protect themselves from common XSS and CSRF attacks
many mobile devices ignore JavaScript entirely
screen readers do execute JavaScript but accessibility issues mean you may not want them to
I did not understand the fourth point. What does it mean?

I need your comment and responses on these points. Is not using JavaScript and switching to libraries like jQuery worth it?

UPDATE 1 :

whats the meaning of Unobtrusive JavaScript with jQuery ? and yes it does not say we should use libraries but we should have them on external files for that reason i asked my question.

Explanation / Answer

Here is a jQuery method:

function (deep) {
if (window.$ === jQuery) {
window.$ = _$;
}

if (deep && window.jQuery === jQuery) {
window.jQuery = _jQuery;
}

return jQuery;
}
As you can see, it is plain javascript. jQuery is javascript. It is a set of methods to help you produce code faster.

jQuery is not something magic.

The "unobtrusive" part can be done using simply javascript.

The thing is, a few years ago, people used javascript like this:

HTML:

<a href="#"></a>
JS:

function someMethod() {
}
This is obtrusive, because the javascript code is in the HTML. This is mixing the content and the behavior. Not very good for many reasons (maintainability, mostly).

However, in javascript, you could also do:

document.getElementById( 'someId' ).onclick = someMethod;

function someMethod() {
}
But javascript was seen as an ugly language for kids, so nobody bothered to do anything pretty.

jQuery kind of democratized javascript, and it quickly allows you to do something like:

$( '#someId' ).click( function() {
} );
Which is why it is "unobtrusive javascript with jQuery".