C#
C#

help

Root Question Message

sydney
sydney12/12/2022
❔ async code in cshtml file of asp net framework that target IE browser

hi all, i understand that Internet Explorer arent' compatible with async/await, but is there an alternative to this if we want to handle asynchronous code (API request for example before we execute the next code) and our target website is Internet explorer, do we have to install babel into our asp net framework project?
AntonC
AntonC12/12/2022
I'm not sure they offer tools like that, I'd manage this manually
AntonC
AntonC12/12/2022
with a separate node project with all of this configuration
AntonC
AntonC12/12/2022
then you can add typescript, any polyfills you want, any linters you want, etc.
sydney
sydney12/12/2022
hmm... let me try it out..
OneWholesomeDev
OneWholesomeDev12/12/2022
cshtml being server-side rendered, your async code wouldnt even ship to the IE browser
OneWholesomeDev
OneWholesomeDev12/12/2022
🤨
OneWholesomeDev
OneWholesomeDev12/12/2022
Ohhhhhhhhhhhhhhhhhhhhhhhhhh, we're talking JS' async-promise thingy?
AntonC
AntonC12/12/2022
yes
OneWholesomeDev
OneWholesomeDev12/12/2022
wow
Message Not Public

Sign In and Join Server To See

12/12/2022
AntonC
AntonC12/12/2022
a lot of people keep using it
Angius
Angius12/12/2022
Fuck them people
Angius
Angius12/12/2022
They deserve the internet to be broken for them
Angius
Angius12/12/2022
To answer your question, though: save yourself some sanity and just use Babel
sydney
sydney12/13/2022
i used babel but got so many issue on the visual studio
sydney
sydney12/13/2022
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy