r25753 - Rip out jquery dependency. (fia/pull/89']#89) * Rip out jquery dependency. The features we rel

Github Bot

Poster of Commits
Rip out jquery dependency. (#89)

* Rip out jquery dependency.

The features we rely on are native JS replacements as of IE9 or so.

https://www.w3counter.com/trends says that maybe 0.1-0.2% of users are
on IE8 and below, if even that.

But also, this is only relevant if you aren't using KoL's action bar.

* Fix translation error.

If we're using document.getElementById and not document.querySelector,
we don't need the # prefix, nor do we need to access into an array,
since it only returns a single element (or null).

View on Github
 

fronobulax

Developer
Staff member
Is there a definitive list of JavaScript files that KoLmafia places in relay? I have
  • jquery.pretty-text-diff.min.js
  • jquery1.4.3.js
  • jquery1.10.1.min.js
which I assume are safe to delete.

But there are several other files that seem to be mafia's attempt at providing various versions. macrohelper.js being the most prolific. Can I delete them and expect mafia to restore them if I deleted in error?
 

heeheehee

Developer
Staff member
Mafia adds the files in src/relay.

I believe they should be automatically restored if you delete them inadvertently.
 
Top