215 points · by fanf2 · 9y ago · 91 comments
That's why their target for "emerging markets" devices is five whole seconds of JavaScript compilation, which would hardly be considered acceptable on a device five times as expensive, but that device is not five times as fast on a given core, it's probably something more like one and a half or two, maybe two and a half if you include faster main memory and caches.
Added: I once worked on an ecommerce site where I told my team early on that we would probably do worse than we planned if we built and tested on the latest iPhones and Galaxy devices, and was vindicated basically every week after a certain point. It was so bad that, on 802.11ac WiFi connected to a gigabit downlink with about 15ms round trip latency to the servers, the homepage would take about 10 seconds to display anything at all on an iPhone 6s, and another 8 seconds to finish loading the visible content. Unbelievably, more than three quarters of that time was spent parsing and compiling JavaScript. You don't even want to know what happens when you try to open that site on anything slower than a late 2015 flagship device.
Gmail (HTML)... takes 0.5 seconds. (And about the same on my Netbook with a Celeron)
Guess which one I use? It's like the entire world has forgotten what productivity is.
This is what happens when you hire people who are foolisher, lazier, or more short-sighted than you, they rot your company from the inside out. ;- )
Please do keep sending feedback and thoughts through on how can keep improving.
In terms of session length, I can see that being an issue. We had strict union regulations, and a lot of content to get through and I took the decision for more but shorter length talks that we can expand with textual content after the event.
We also tried to keep the theme for day 1 to everything we've learnt in the last year, so what is the new minimum bar for web experiences, how to load them quickly and how we've done it in the real world with commerce and media experiences and wordpress and pwa.
On day 2 I wanted us to showcase where we think the web could be heading in the next year, specifically with more of a focus on developer experience (devtools etc, polymer, lit etc)
Not saying we hit all those goals, but I do feel pretty happy with the event as a whole.
Can you clarify what this means?
In my experience it means paying for more audio, video, and venue staff because the existing folks have been on duty all day but the conference organizers don’t want to pay or can’t afford to pay for a) more people or b) overtime
I’ve done a bit of mix engineering and conference organizers are very myopic: why can’t I be as excited about their stuff as they are? They don’t think about what happens when this is your day job and if you don’t bring the hammer down you’ll end up working unpaid overtime every day of every week because every conference thinks they are the hottest most exciting shit since sliced bread.
One can assume Google is able to pay more but made the perfectly reasonable business decision not to. The mystery for me is why you’re blaming it on the union?
Perhaps the venue completely prohibits longer days but every rate sheet I’ve ever seen simply quotes higher prices if you exceed a “normal” conference day length.
(I’m genuinely curious here but also being slightly sensitive: there are certainly abusive unions - Philly conference centers come to mind where you have to pay master electricians to carry tables and chairs into the venue - but it is far more common for people to be cheap-asses & blame the unions)
It's just a factor how we chose to run the event and the content and that is what I was trying to articulate.
FWTW: I don’t see a problem with shorter sessions.
As someone who was invited to attend - I really wished the talks were more low level and technical. I'd really enjoy talks about how things are implemented in Chrome, how the underlying APIs (for PWAs for example) work and so on.
We need to do a better job at audience segmentation because we have ranges from senior dev to student, and CxO's etc and that's roughly why we stay a tad higher level with a lot of case studies.
We might end up with different days or different events for the audiences.
Because of this, I want to say thank you precisely for not giving more lower-level details in your talks.
If there are multiple tracks on the same day, maybe consider a high and low level track?
The only conference I've been to that felt targeted to me was Django Under The Hood, which is billed as very technical talks about the innards of a framework.
Maybe somewhere in that 10 hour someone talks about it, but let me ask about this problem: Google is big, and has many sides, fronts, faces and eyes; what is Chrome, where is Chrome in relation to all the other web-related, web-facing web-targeted things?
Where is Chrome, Polymer, Angular, and Android compared to each other (and the big Google itself)? Should I wait for Angular to adopt the Chrome PWA guidelines? Should I just wait for the Android team to stop developing the native APIs and focus on the WebView and make the whole Android platform more web-compatible? If now, what's Chrome's thoughts on what these other teams/projects/products/faces-of-Google are doing?
We are a big company with many facets and no clear web direction owner and also lots of platforms (android, web, assistant etc). Generally, it's lots of groups working to reach users on the web. Chrome works on what it can work on and tries to influence other teams as best it can.
Angular team has been very supportive of the PWA story, but it wasn't clear in this conference for sure.
For those not at the event, we had a large forum area where we had more Google teams (AMP and Angular) and many other browsers have a space to talk to developers.... But this wasn't clear by just looking at the videos.
I think the big thing for me, is we are not going to say don't do Android. We should be clearer on why things like Trusted Web activities help you deliver web experiences with native though and we can keep being clearer about why we think the web is good and how best to deploy on it.
https://www.youtube.com/watch?v=TU8fy8PHAl0
Google accepts that they're going to have competing approaches inside the company, and this even has significant advantages. We all just have to deal with it.
That's why you run several parallel tracks, each with a separate theme. As an example, see Erlang User Conference programme: http://www.erlang-factory.com/euc2017#programme
This way you give people a chance to prepare more specific presentations around a specific theme: tooling, components, apps, deployment, distribution, development, what have you.
There were open complaints on Twitter about the dev summit organizers being sexist.
I won't go into details but multiple female Google employees have voiced their opinions regarding this.
Don't be that guy.
For context, for everyone on the thread. We had a wrap-up video (https://www.youtube.com/watch?v=2n69vkYvo9g) of the event that didn't have the MC's included and given they were the face of the event, it was a mistake that we made and we didn't have time to fix and are in the process of rectifying. We also had a dedicated video planned just for the MC's but it takes time to create and put together.
> You can wrap lit-HTML in WCs, just like you can wrap React components up as WCs, but you gain nothing from it.
This isn't true either. lit-html has no component model, so by using it to implement WCs, you get a component model.
> it’ll be in direct competition with Polymer, Angular, Svelte, Skate, and Stencil
A template library is not in direct competition with Web Component base classes/frameworks, but can be used by them. It's already integrated with Skate, will be integrated with Polymer soon, and Stencil is looking into using it too.
> lit-html is not a new framework, but simply a template library.
Nobody wants to be called a framework, do they? For years, React developers insisted that it was nothing but a "view" layer, because everybody knows that "frameworks" suck.
> lit-html has no component model, so by using it to implement WCs, you get a component model.
I think you mis/underestimate the extent to which you have a component model already. What you already have is the equivalent of React's "functional components," where the component is nothing but its render method.
> A template library is not in direct competition with Web Component base classes/frameworks, but can be used by them
It's great that WCs let you interop with all WC-based frameworks, but some folks will avoid lit-HTML in favor of Stencil's JSX approach, or in favor of Svelte's Vue-alike HTML components, or more generally to decide whether to observe changes and respond to them or whether to regenerate the UI as a function of state.
Interop doesn't mean you're not in competition.
When we (Polymer folks) think of a component model, we think of a lifecycle. Being notified when you boot up, when you're activated, when you're deactivated, and when the state you care about changes. React has that, Web Components have that, lit doesn't.
Agreed that there's a lot of baggage on the term `framework`, it's probably a good idea to taboo the word and break it apart into the pieces that we care about. IMO that's:
- how big is the cost of adding the dependency – mostly this is
the size of the library
- how big is the ecosystem of code that it can play nicely with
- are there well documented best practices
- is there a complicated black box of internals that do a bunch
of magic, or is it composed of small modular pieces that can
be understood in isolationThese things don't conflict with each other though. In Polymer, you usually observe changes to fire off requests and stuff, but the UI is pretty much described as a function of state.
That argument feels like a non-sequitur. Polymer's API is different from the Web Component API, so even if the Web Component API would be unpleasant to use directly, that is not a criticism of a different API (in this case the Polymer API). Polymer's API is "similar" to the native Web Component API though, but it's designed to be easier to use than the native API.
But I don't really get the "Web Components APIs are unpleasant" line of criticism. The WC APIs are just the element constructor, connectedCallback, disconnectedCallback, attributeChangedCallback and what methods and properties you define on your component. These lifecycle methods are nearly identical to what you get in React and just about every other framework. If those don't have unpleasant APIs, Web Components don't.
https://twitter.com/samccone/status/914528725852663808
"This of course is coming from someone who has used web components every work day for the last 2 years. Hard to ignore the DX gap that exists."
To which Alex Russell, also of Google and one of the architects of the WC API, replies, "Who's ignoring it?"
There are certainly some developers who compare and contrast Polymer and React and prefer Polymer, but it's fair to say that the vast majority of developers who have made this comparison have preferred React's developer experience. Even Polymer's advocates seem to be holding their nose and using it because they appreciate the long-term promise of Web Components interop.
Why? It's hard to say exactly, but I think it has to do with React's guarantees that the UI will be a pure function of state. Lots of nifty React features emerge from that. Polymer components make no such guarantees.
I'm actually pretty enthusiastic about lit-HTML as a way to close the gap. We'll see how it goes.
Bullshit.
Polymer's developer experience is absolutely my favorite, since version 1.0. Importantly, Polymer does not require any build tools.
lit-html is neat but there's nothing wrong with the current Polymer.Templatizer system in terms of developer experience.
For that reason I think they're different APIs, even though Polymer's API can be considered a superset of the Web Components API.
dozens of lines of tedious boilerplate for the most basic things like “create a property, and an attribute, and a custom event”
The sad thing is that WebComponents proponents are absolutely blind to the fact that WebComponents API is complete and utter crap.
Well, most proponents don’t propose WebComponents. They propose Polymer.
This is a criticism of Objects, not Web Components, and most framework/component libraries out there assists in creating properties that can be observed, from Ember to Angular to Polymer. That Web Components don't solve a problem that applies to the whole of JavaScript, but Web Components libraries do, does not seem like a very serious criticism to me.
> and an attribute
Adding an attribute name to `observedAttributes` and listening for the change in `attributeChanged` callback is not very onerous, and similar to frameworks that have attributes callbacks. How else do you propose listening to an attribute? Regardless, and again, libraries help do this small bit for you, and combine it with a property for a single, declarative property/attribute definition.
> and a custom event
"Defining" a custom event is as simple as firing it, and since they're standard DOM events, if you find the CustomEvent/dispatchEvent API too difficult to use, you could write or use a small helper. I'm not totally sure what it would do, since those APIs are so simple. And yet again, libraries like Polymer include firing events when properties change as a declarative option, to make it even simpler.
I know you have a major axe to grind with Web Components on Twitter. I'm not sure what set you off about them, and I know I won't change your mind. I only responded for other readers here.
If the web is slow or unusable (especially on mobile in India, for example), then Google search is useless on mobile in India, so nobody will want to buy mobile search ads in India.
We announced Trusted Web activities https://developers.google.com/web/updates/2017/10/using-twa which give you a fullscreen surface for web content in an Android App in the store and allow you to offer more integration with the Android operating system (protocol and scheme handling, quick links etc)... I do think this is interesting, I worked on the Chrome Web Store when it launched and the number one complaint was that the experiences "were just bookmarks" and I think Trusted Web activities give us a chance to experiment with deeper web integrations on the host platform before we are able to standardize it.
There needs to be pressure on the entire ad industry (including Google's products) to not hurt the users experience with crappy and bloaty ads the ruin the hard work product teams make to build on the web. I do believe (I am biased as I am on the Chrome team) that the Chrome team want to do the right thing for the users of the web.
Really the only people I might trust would be google, but there is a conflict of interest I think considering they have a vested interest in enabling things like tracking.
So who does this “certification?” Hopefully not the same people who call for 8 digit passwords you have to chance arbitrarily every three months or people who’s idea of security comes from circa 1996 Microsoft documentation.
Safari doesn't have those because Apple doesn't see them as a priority - but after talking to Apple engineers who work on Safari it turns out that it's mostly because it isn't prioritized and not because they don't want the feature.
It's not _that_ much work either on their end.
If I knew I could get PWA capabilities on an iPhone - I would definitely consider PWAs for replacing native development entirely.
It's not as simple as just forcing it in. SW can require deeper integration with the OS and network stacks that we don't have the ability to change on iOS or macOS.
For example, `fetch` in service workers - caching and request intercepting could really improve the "default" iPhone experience in PWAs.
I realize that getting this request is annoying (Build a feature in another browser) but I really think it could significantly push the web as a whole.
It would also be great to see the Chrome team fix some of the more annoying bugs in the existing APIs (WebRTC has some really annoying ones).
Re: helping. I think we have some engineers supporting our predictablity efforts on WebKit (i.e helping to smooth out edge cases) but I don't think we are working pushing larger features in...
https://github.com/gdnmobilelab/SWWebView
I'd disagree with your assertion that it's not that much work :) Service Workers are their own self-contained JavaScript environments with complicated lifecycles after all.
That said, I've been surprised by now much is possible just using public APIs, but I'm not sure you could pull request a full OS implementation. For example, adding an app to home screen. That's going to need to wire into non-WebKit iOS and macOS code, which AFAIK is not open source. Workers also sometimes run when the browser is not active, and that wouldn't be a trivial thing to add.
Also, Apple started working on the Service Worker APIs recently. It's not clear exactly how much they'll implement, but it's a very positive step.
> The Google Payment API only works in Chrome on Android
Why does Google even bother making this?
Really... it's a whole different world if you only have 500Kbit/s download rate and you can see easily who has done their homework good to address countries with slow internet and who did not. Some websites will get completely unusable in this areas! And you will find out that Opera Mini is your new best friend.
Only want to mention one heavy media company which has done a near perfect job: Instagram. This app is even blazing fast with slow internet. Well done, really.
Closed source?
Unless my site can actually do something offline, service workers for caching is just an extra headache