Posts: 2020
Threads: 133
Joined: July 26, 2017
Reputation:
5
Using BabelJS
May 14, 2021 at 5:20 pm
(This post was last modified: May 14, 2021 at 5:21 pm by FlatAssembler.
Edit Reason: Explained what is Firefox 52.
)
So, I recently learned about BabelJS, and it looks like an interesting technology. It seemed to me it could be used to make my web-app ( https://flatassembler.github.io/PicoBlaz...Blaze.html ) work in Internet Explorer 11. It does not work in Internet Explorer 11, but it is not exceptionally modern JavaScript, that is, it works in Firefox 52 (the last version of Firefox to run on Windows XP). So, here is what I tried. In the head, I added this ( https://github.com/FlatAssembler/PicoBla....html#L387 ):
Code: <script id="objectAssignPolyfill"></script>
<script id="symbolPolyfill"></script>
<script id="fetchPolyfill"></script>
<script id="BabelJS"></script>
<script id="BabelPolyfill"></script>
Now, in the body, I have a message that shows in case JavaScript fails to execute. So, into that message, I added the following code ( https://github.com/FlatAssembler/PicoBla...html#L1111 ):
PHP Code: Or, you can try <a href="javascript:void(0)" onclick="downloadBabel()" >polyfilling your browser with BabelJS</a >. </div> </div> <script> function downloadBabel() { document.getElementById("objectAssignPolyfill").src = "https://cdn.jsdelivr.net/npm/object-assign-polyfill/index.min.js"; document.getElementById("symbolPolyfill").src = "https://cdn.jsdelivr.net/npm/symbol-es6/symbol-es6.min.js"; document.getElementById("BabelPolyfill").src = "https://unpkg.com/@babel/polyfill/dist/polyfill.js"; /* Do not include the minified file, because Babel Minifier transpiles "RegExp('x','y')" into "/x/y", which is a syntax error in Internet Explorer 11! */ document.getElementById("BabelJS").src = "https://unpkg.com/@babel/standalone/babel.min.js"; document.getElementById("fetchPolyfill").src = "https://cdn.jsdelivr.net/npm/[email protected]/dist/fetch.umd.min.js"; var scripts = document.getElementsByTagName("script"); for (var i = 0; i < scripts.length; i++) { if (scripts[i].type == "text/javascript") { var newScriptTag = document.createElement("script"); newScriptTag.type = "text/babel"; newScriptTag.src = scripts[i].src; newScriptTag.setAttribute("async", false); newScriptTag.innerHTML = scripts[i].innerHTML; document.body.appendChild(newScriptTag); } } } </script>
However, it still does not work in Internet Explorer 11. What else is there to try? It is unfortunate that many people, including relatively tech-savvy ones, still use such ancient browsers, and it would be good if at least some functionality of my web-app were available in them.
Posts: 44023
Threads: 529
Joined: July 24, 2013
Reputation:
109
RE: Using BabelJS
May 14, 2021 at 5:53 pm
Have you tried reverting the rhomboid infraculator with the whisket flange?
Boru
‘But it does me no injury for my neighbour to say there are twenty gods or no gods. It neither picks my pocket nor breaks my leg.’ - Thomas Jefferson
Posts: 15183
Threads: 115
Joined: July 10, 2013
Reputation:
65
RE: Using BabelJS
May 14, 2021 at 5:58 pm
(May 14, 2021 at 5:53 pm)BrianSoddingBoru4 Wrote: Have you tried reverting the rhomboid infraculator with the whisket flange?
Boru
I've heard you need special tools for that.
“If you are the smartest person in the room, then you are in the wrong room.” — Confucius
Posts: 2872
Threads: 8
Joined: October 4, 2017
Reputation:
22
RE: Using BabelJS
May 14, 2021 at 5:59 pm
Wow. Stuck back in the dark ages of Internet Explorer. Fucking nobody uses it. But there you are hopefully developing software for it. FFS internet explorer? Are you mad?
Posts: 44023
Threads: 529
Joined: July 24, 2013
Reputation:
109
RE: Using BabelJS
May 14, 2021 at 6:08 pm
(May 14, 2021 at 5:58 pm)arewethereyet Wrote: (May 14, 2021 at 5:53 pm)BrianSoddingBoru4 Wrote: Have you tried reverting the rhomboid infraculator with the whisket flange?
Boru
I've heard you need special tools for that.
Just a grommet expander with the optional dough hook.
Boru
‘But it does me no injury for my neighbour to say there are twenty gods or no gods. It neither picks my pocket nor breaks my leg.’ - Thomas Jefferson
Posts: 15183
Threads: 115
Joined: July 10, 2013
Reputation:
65
RE: Using BabelJS
May 14, 2021 at 6:23 pm
(May 14, 2021 at 5:59 pm)Abaddon_ire Wrote: Wow. Stuck back in the dark ages of Internet Explorer. Fucking nobody uses it. But there you are hopefully developing software for it. FFS internet explorer? Are you mad?
My thought also. In order to keep from having to make physical trips to the bank for work to deposit the checks we get, we were sent a scanner. Now I have used these check scanners before so no big deal, right? WRONG....WRONG...WRONG....after multiple tech support calls I was able to get the routing and account numbers to look something like this: @&5#%@* *@%&*...if they scanned at all. The only browser the damn scanner and software is compatible with is IE...are you kidding me?
Multiple calls made to tech support by me, a coworker, our boss and the use of several different PCs yielded nothing but frustration. So I plan making deposits around picking up breakfast or lunch from a nearby fast food joint since that's a rare treat for me.
“If you are the smartest person in the room, then you are in the wrong room.” — Confucius
Posts: 15183
Threads: 115
Joined: July 10, 2013
Reputation:
65
RE: Using BabelJS
May 14, 2021 at 6:23 pm
(May 14, 2021 at 6:08 pm)BrianSoddingBoru4 Wrote: (May 14, 2021 at 5:58 pm)arewethereyet Wrote: I've heard you need special tools for that.
Just a grommet expander with the optional dough hook.
Boru
...and a partridge in a pear trrreeeeeee!
“If you are the smartest person in the room, then you are in the wrong room.” — Confucius
Posts: 2872
Threads: 8
Joined: October 4, 2017
Reputation:
22
RE: Using BabelJS
May 14, 2021 at 6:48 pm
(May 14, 2021 at 6:23 pm)arewethereyet Wrote: (May 14, 2021 at 5:59 pm)Abaddon_ire Wrote: Wow. Stuck back in the dark ages of Internet Explorer. Fucking nobody uses it. But there you are hopefully developing software for it. FFS internet explorer? Are you mad?
My thought also. In order to keep from having to make physical trips to the bank for work to deposit the checks we get, we were sent a scanner. Now I have used these check scanners before so no big deal, right? WRONG....WRONG...WRONG....after multiple tech support calls I was able to get the routing and account numbers to look something like this: @&5#%@* *@%&*...if they scanned at all. The only browser the damn scanner and software is compatible with is IE...are you kidding me?
Multiple calls made to tech support by me, a coworker, our boss and the use of several different PCs yielded nothing but frustration. So I plan making deposits around picking up breakfast or lunch from a nearby fast food joint since that's a rare treat for me.
LOL, even Microsoft have abandoned IE and it's failure of a successor.
I have a customer that got stuck in that banking fiasco. I had to tell them up front that it was not my problem, call Bill Gates. Then Edge happened. I thought that might make everything easier. Nope. El banko still insisted on IE because the move at a glacial pace.
Posts: 15183
Threads: 115
Joined: July 10, 2013
Reputation:
65
RE: Using BabelJS
May 14, 2021 at 6:55 pm
(This post was last modified: May 14, 2021 at 6:56 pm by arewethereyet.)
(May 14, 2021 at 6:48 pm)Abaddon_ire Wrote: (May 14, 2021 at 6:23 pm)arewethereyet Wrote: My thought also. In order to keep from having to make physical trips to the bank for work to deposit the checks we get, we were sent a scanner. Now I have used these check scanners before so no big deal, right? WRONG....WRONG...WRONG....after multiple tech support calls I was able to get the routing and account numbers to look something like this: @&5#%@* *@%&*...if they scanned at all. The only browser the damn scanner and software is compatible with is IE...are you kidding me?
Multiple calls made to tech support by me, a coworker, our boss and the use of several different PCs yielded nothing but frustration. So I plan making deposits around picking up breakfast or lunch from a nearby fast food joint since that's a rare treat for me.
LOL, even Microsoft have abandoned IE and it's failure of a successor.
I have a customer that got stuck in that banking fiasco. I had to tell them up front that it was not my problem, call Bill Gates. Then Edge happened. I thought that might make everything easier. Nope. El banko still insisted on IE because the move at a glacial pace. The saving grace is that it's a weekly trip to the bank. Most customers use credit/debit cards and a couple businesses ACH the funds. Some of the elderly clients write checks and I get it and am okay with that...besides, they have been customers for years.
If I had to go every day, I would be homicidal.
I was given a business card last week for a guy who can supposedly fix the issue...one day, when I am feeling particularly masochistic, I may call him.
“If you are the smartest person in the room, then you are in the wrong room.” — Confucius
Posts: 2872
Threads: 8
Joined: October 4, 2017
Reputation:
22
RE: Using BabelJS
May 14, 2021 at 7:12 pm
(May 14, 2021 at 6:55 pm)arewethereyet Wrote: (May 14, 2021 at 6:48 pm)Abaddon_ire Wrote: LOL, even Microsoft have abandoned IE and it's failure of a successor.
I have a customer that got stuck in that banking fiasco. I had to tell them up front that it was not my problem, call Bill Gates. Then Edge happened. I thought that might make everything easier. Nope. El banko still insisted on IE because the move at a glacial pace. The saving grace is that it's a weekly trip to the bank. Most customers use credit/debit cards and a couple businesses ACH the funds. Some of the elderly clients write checks and I get it and am okay with that...besides, they have been customers for years.
If I had to go every day, I would be homicidal.
I was given a business card last week for a guy who can supposedly fix the issue...one day, when I am feeling particularly masochistic, I may call him.
I happen to own a paltry few Verizon shares. Every so often, I get an actual physical cheque for dividends. The effort of wading through a bank to cash a few bucks is just not worth it. It has more value to me to point and laugh with my kids.
|