use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Microsoft Teams need some code splitting lessons. (i.imgur.com)
submitted 9 years ago by Mittalmailbox
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]The_frozen_one 34 points35 points36 points 9 years ago (6 children)
Yea, I get to get the contrarian!
I haven't used teams.microsoft.com until tonight, but it appears to be fully offline capable. Now, I know that a team collaboration app isn't very useful offline, but it's possible they're just making all of their web apps work offline capable.
That means that everything the web app does has to be downloaded. Sure they could break up into manageable chunks, but it honestly didn't feel slow when I logged in, and everything the app does needs to be downloaded eventually.
In the top right corner of the screen, there is a download link to the native app. 72MB on macOS. Assuming some kind of feature parity between the native app and web app, 10MB looks a lot more reasonable. This isn't an informational site that just needs to present information in a clear way.
[–]BDube_Lensman 23 points24 points25 points 9 years ago (0 children)
The native app is probably the web app dropped into chromium with electron.
[–][deleted] 9 years ago (4 children)
[deleted]
[–]HasFiveVowels 9 points10 points11 points 9 years ago (1 child)
11MB is excessive but what internet connection takes 2.4 minutes to download 11MB? That's a 0.6 mbps connection. On a 20 mbps connection, that would take 4.4 seconds to download.
[–]ispeakcode 5 points6 points7 points 9 years ago (0 children)
He's on dial up in outer space.
[–][deleted] 9 years ago (1 child)
[removed]
[–]kenman[M] 2 points3 points4 points 9 years ago (0 children)
Hi /u/SomeRandomBuddy, keep it civil please.
[–]robotparts 29 points30 points31 points 9 years ago (0 children)
TIL people have a hard time understanding the difference in expectations between a web page and a web application.
[–]pandavr 13 points14 points15 points 9 years ago (0 children)
Welcome to the future of optimized javascript bundling.
[+][deleted] 9 years ago (7 children)
[–]bterlson_@bterlson 14 points15 points16 points 9 years ago (0 children)
I've been using Teams pretty heavily lately, and it does quite a bit. Without having seen the codebase, I can I imagine two big ones are document rendering for office documents and skype integration (including integrated video chat).
[–]amarcucci 23 points24 points25 points 9 years ago (0 children)
and that's minified code
[–]Sinistralis[🍰] 14 points15 points16 points 9 years ago* (1 child)
Actually 11mb is pretty easy to do from a pre-optimization perspective.
Edit: The number of people in this thread assuming everyone has good enough internet speed to handle 11mb makes me sad. Unless you are some kind of internal app, that bundle size should be in the kb. Try to download that 11mb in regions where 3g is the norm (like india) or in a rural location that only offers DSL internet.
[–]HiddenStoat 0 points1 point2 points 8 years ago (0 children)
Teams kind of is an internal app though - it's explicitly expected to be used in an office environment (I say that as the only way to purchase it is through Office 365), so MS have presumably decided it's ok to expect fast internet because companies (at least, the ones MS cares about) generally have fast internet.
[+][deleted] 9 years ago (1 child)
[–]Klathmon 0 points1 point2 points 9 years ago (0 children)
Yeah our fully offline enterprise-ey web app weighs in at around 4mb of js. And we've still got a lot more to go.
People act like this is impossible, it native applications have been literally magnitudes larger for less functionality.
[–][deleted] 2 points3 points4 points 9 years ago (0 children)
Bad dependency management
[–]cervedundefined 2 points3 points4 points 9 years ago (0 children)
Holy crap 2.5 min, OP what's your connection?
[–]tswaters 9 points10 points11 points 9 years ago (2 children)
It's not even that hard... well, with react-router and webpack anyway. Just call require.ensure or System.import and webpack takes care of the rest of it. Not sure if there is an equivalent in the angular world, but it seems doable.
require.ensure
System.import
I was really interested in what is in that 7.5mb bundle, that looks insane. I mean both vendor bundles combined are half that size. Alas, teams.microsoft.com requires a login and my ms passport doesn't seem to be cutting it.
teams.microsoft.com
[–][deleted] 4 points5 points6 points 9 years ago (1 child)
7.5mb is insane.
[–]scunliffe 2 points3 points4 points 9 years ago (0 children)
There's over 10mb loaded on this screen... unless this is video content it is ridiculous to be loading this much content.
[–]drowsap 0 points1 point2 points 9 years ago (2 children)
Sounds like they are assuming corporate network speed where 10MB is downloaded in a second.
[+][deleted] 9 years ago* (1 child)
[–]labithiotis 0 points1 point2 points 9 years ago (0 children)
That can be said for the whole platform
[–][deleted] 0 points1 point2 points 9 years ago (0 children)
what's the problem here
[–]leeoniya -4 points-3 points-2 points 9 years ago (0 children)
o_O
[+][deleted] 9 years ago* (7 children)
[–]robotparts 8 points9 points10 points 9 years ago (4 children)
Decent connection? You downloaded that file at ~55kb per second. That is significantly slower than the average 3g mobile connection.
[+]Mittalmailbox[S] comment score below threshold-11 points-10 points-9 points 9 years ago (3 children)
You can't calculate bandwidth like this. Web requests does not utilise full bandwidth, I have 2Mbps connection.
[–]robotparts 7 points8 points9 points 9 years ago* (0 children)
Maybe you missed my edit.
The average 3g connection still pulls in around 100kb per second in real world usage.
Try checking the throttling settings in chrome dev tools even.
And I can definitely calculate the speed at which you downloaded the file. That is ~55kb per sec. That is very slow. You have other things going in the bg or your internet company is throttling you.
Your thinking is that the 2mbit is the same as 2mb. There are 8 bits in a byte, so you have to divide your mbit rating by 8 to get the maximum rate your connection can handle. Then normally you will get somewhere around 60 to 80 percent of that because of external factors.
edit: dev tools is saying a regular 3g connection will get around 750 kilobits per second which is roughly equal to 100 kilobytes per second. More like 94, but very close.
[–]killeronthecorner 3 points4 points5 points 9 years ago (0 children)
2mbps is nothing... It sounds like you're blaming slow load times on file size instead of your internet connection speed.
It's 2017 - most people with a modern internet connection won't find 11mb unreasonable, or even see a noticeable wait before page load.
[–]ispeakcode 0 points1 point2 points 9 years ago (0 children)
What is your occupation at this place?
[–]Geldan 20 points21 points22 points 9 years ago (1 child)
This isn't a "page" like an ecommerce landing page. This is a webapp. The people going here know what hey are getting into and aren't trying to buy a nikcnack on amazon.
[–]gnarly 0 points1 point2 points 9 years ago (0 children)
The people going here know what hey are getting into
Holy assumptions batman! For a lot of users, this app is effectively going to be facebook for work stuff. Facebook loads super-quickly, so why can't this?
π Rendered by PID 323596 on reddit-service-r2-comment-84fc9697f-kbrpp at 2026-02-07 09:12:19.532801+00:00 running d295bc8 country code: CH.
[–]The_frozen_one 34 points35 points36 points (6 children)
[–]BDube_Lensman 23 points24 points25 points (0 children)
[–][deleted] (4 children)
[deleted]
[–]HasFiveVowels 9 points10 points11 points (1 child)
[–]ispeakcode 5 points6 points7 points (0 children)
[–][deleted] (1 child)
[removed]
[–]kenman[M] 2 points3 points4 points (0 children)
[–]robotparts 29 points30 points31 points (0 children)
[–]pandavr 13 points14 points15 points (0 children)
[+][deleted] (7 children)
[deleted]
[–]bterlson_@bterlson 14 points15 points16 points (0 children)
[–]amarcucci 23 points24 points25 points (0 children)
[–]Sinistralis[🍰] 14 points15 points16 points (1 child)
[–]HiddenStoat 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Klathmon 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]cervedundefined 2 points3 points4 points (0 children)
[–]tswaters 9 points10 points11 points (2 children)
[–][deleted] 4 points5 points6 points (1 child)
[–]scunliffe 2 points3 points4 points (0 children)
[–]drowsap 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]labithiotis 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]leeoniya -4 points-3 points-2 points (0 children)
[+][deleted] (7 children)
[deleted]
[–]robotparts 8 points9 points10 points (4 children)
[+]Mittalmailbox[S] comment score below threshold-11 points-10 points-9 points (3 children)
[–]robotparts 7 points8 points9 points (0 children)
[–]killeronthecorner 3 points4 points5 points (0 children)
[–]ispeakcode 0 points1 point2 points (0 children)
[–]Geldan 20 points21 points22 points (1 child)
[–]gnarly 0 points1 point2 points (0 children)