This is a tricky problem to report as I cannot reproduce it in my local dev environment.
I'm trying to deploy out a Polymer 2.0 app (that currently lives within a rails app, but I'm on the path to going full Polymer on the front-end, it's a long story). Anyway, everything works find in development in Chrome, Safari, Firefox and Android Chrome. But when I build and deploy to my staging environment I'm getting a weird issue.
Description
In Safari Version 10.1.2 (12603.3.8) on macOS Sierra Version 10.12.6 16G29, the polymer app takes 2-3 minutes or more to load. When you open up the network panel (which you have to do before loading the page, it freezes up and won't open the console once the page is trying to load) it appears that there are a number of external javascript resources which are taking a long time to load. For a while the resources which were taking a long time to load were related to New Relic then it was Intercom, but after disabling those it is now Google Fonts or sometimes something else.
The end result is that the page takes an extremely long time to load. (It's never less than 2 minutes and it has taken 5 minutes once.) Given the inconsistency of which resource is taking a long time to load I'm thinking that this has to do with webcomponentsjs or a polyfill or something... but I'm completely at a loss as to how to debug this issue.
Steps to Reproduce
As I said, I don't know how to replicate this in a dev environment. The only way to reproduce is to log into my staging environment.
- Open Safari on a Mac
- Go to https://bl-staging-mango.herokuapp.com/users/sign_in and login with username
test@example.com and password password. But before you login open up the web console because you won't be able to later.
- When you log in, you will be taken to the signed in home page (that is currently the only page of the app which is using the new Polymer 2.0 front end stack). It will take multiple minutes to load but it will eventually show up if you wait long enough.
You can verify that everything works fine in Firefox and Chrome (I haven't had a chance to test in iOS Safari yet). You can also verify that other pages in the app work fine in Safari, even ones which use our older Polymer stack (example link 1, example link 2, example link 3).
Browsers Affected
Versions
Here's my bower.json:
{
"name": "badgelist",
"description": "A platform for awarding digital credentials and tracking learning progress.",
"main": "index.html",
"dependencies": {
"polymer": "Polymer/polymer#^2.0.0",
"iron-ajax": "PolymerElements/iron-ajax#^2.0.2",
"app-route": "PolymerElements/app-route#^2.0.0",
"iron-pages": "PolymerElements/iron-pages#^2.0.0",
"paper-button": "PolymerElements/paper-button#^2.0.0",
"paper-dialog": "PolymerElements/paper-dialog#^2.0.0",
"paper-item": "PolymerElements/paper-item#^2.0.0",
"paper-menu": "PolymerElements/paper-menu#^1.3.0",
"paper-menu-button": "PolymerElements/paper-menu-button#^2.0.0",
"google-fonts-lato": "https://google-fonts.azurewebsites.net/googleFonts/google-fonts-lato?family=Lato",
"google-fonts-roboto": "https://google-fonts.azurewebsites.net/googleFonts/google-fonts-roboto?family=Roboto",
"google-fonts-roboto-mono": "https://google-fonts.azurewebsites.net/googleFonts/google-fonts-roboto-mono?family=Roboto+Mono",
"paper-styles": "PolymerElements/paper-styles#^2.0.0",
"iron-scroll-target-behavior": "PolymerElements/iron-scroll-target-behavior#^2.0.0",
"paper-tooltip": "PolymerElements/paper-tooltip#^2.0.0",
"paper-listbox": "PolymerElements/paper-listbox#^2.0.0",
"paper-icon-button": "PolymerElements/paper-icon-button#^2.0.0",
"swagger-js": "~2.1",
"paper-spinner": "PolymerElements/paper-spinner#^2.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.5"
},
"devDependencies": {
"web-component-tester": "Polymer/web-component-tester#^6.0.0"
}
}
This is a tricky problem to report as I cannot reproduce it in my local dev environment.
I'm trying to deploy out a Polymer 2.0 app (that currently lives within a rails app, but I'm on the path to going full Polymer on the front-end, it's a long story). Anyway, everything works find in development in Chrome, Safari, Firefox and Android Chrome. But when I build and deploy to my staging environment I'm getting a weird issue.
Description
In Safari Version 10.1.2 (12603.3.8) on macOS Sierra Version 10.12.6 16G29, the polymer app takes 2-3 minutes or more to load. When you open up the network panel (which you have to do before loading the page, it freezes up and won't open the console once the page is trying to load) it appears that there are a number of external javascript resources which are taking a long time to load. For a while the resources which were taking a long time to load were related to New Relic then it was Intercom, but after disabling those it is now Google Fonts or sometimes something else.
The end result is that the page takes an extremely long time to load. (It's never less than 2 minutes and it has taken 5 minutes once.) Given the inconsistency of which resource is taking a long time to load I'm thinking that this has to do with webcomponentsjs or a polyfill or something... but I'm completely at a loss as to how to debug this issue.
Steps to Reproduce
As I said, I don't know how to replicate this in a dev environment. The only way to reproduce is to log into my staging environment.
test@example.comand passwordpassword. But before you login open up the web console because you won't be able to later.You can verify that everything works fine in Firefox and Chrome (I haven't had a chance to test in iOS Safari yet). You can also verify that other pages in the app work fine in Safari, even ones which use our older Polymer stack (example link 1, example link 2, example link 3).
Browsers Affected
Versions
Here's my bower.json: