Pages without javascript pulling asynchronous content.

I believe JavaScript at frontend is quite powerfull, but that power can be
used in a good and in bad way, even without malicious intentions. Simple
putting it, some webpages doesn't need for sure JS to give us content
unless we want the user experience to be somehow 'more' acessible or with
some fancy behavior.

The thing is, bad JS code can put our CPU's wasting more energy just to
show text information, the question is, how to disable this kind of abuse?
(Not to mention that sometimes web pages are defaced to exec crypto
currency stuff or other obscene ends).

I am the kind of person that disable JS for all websites and only active it
when really needed, and sometimes this is pain-in-the-*ss because some page
can depend of other external JS and, I need to reload the page many times
until everything is ok - other times I need to allow all because the
webpage is built in a way I don't wanna speak about.

I already had the experience trying to make a donation and give up just
because the whole process needed many different external JS and at that
time the plug in I used to disable JS was limited.

Anyway, all this just to share my thoughts without too much analysis on
some behavior to pull asynchronous content without AJAX in the actual way:

- The developer just needed to change the endpoints anchor protocol to
httpa:// or httpsa:// which 'a' means 'asynchronous' to browser know what
to do behind the scenes with this links.

- Browser will then send the content to the ID at the parameter "target" if
different from the reserved words for that parameter.

- e.g: <a href="httpsa://example.org/json/list/countries"
target="div_contries" a-status="">Link</a>

Probably you already thought about something similar, but this message is
to let me scream that JavaScript is nice especially the XMLHttpRequest ,
but it's hurting the web for basic stuff...


-- 
Cheers
Vıtor Moreira

Received on Thursday, 28 February 2019 15:59:19 UTC