Bundled vs unbundled

300 views
Skip to first unread message

Marco Stolle

unread,
Jun 2, 2016, 2:23:32 AM6/2/16
to Polymer
i wander how does the backend know what version of your build to serve, bundled or unbundled, and what if you use Firebase hosting?

Gr Marco

Message has been deleted

Chuck Horton

unread,
Jun 4, 2016, 12:32:12 PM6/4/16
to Polymer
In the case of Firebase when you do a firebase init point public to  build/bundled.

Below is example of firebase.json I created for PSK2 for hosting on Firebase.  See https://psk2-ec681.firebaseapp.com/

}
  "database": {
    "rules": "database.rules.json"
  },
  "hosting": {
    "public": "build/bundled",
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

Marco Stolle

unread,
Jun 5, 2016, 5:19:10 AM6/5/16
to Polymer
Thanks for the info Chuck,

in case of Firebase i have to assume http2 server push is not supported yet and serve the bundled versi.



Op zaterdag 4 juni 2016 18:32:12 UTC+2 schreef Chuck Horton:

Chuck Horton

unread,
Jun 5, 2016, 6:52:14 AM6/5/16
to Polymer
Currently Firebase does not support http2 so you need to use bundled version. Once it does support http2 you could point public at build/unbundled. 

Marco Stolle

unread,
Jun 8, 2016, 1:02:09 AM6/8/16
to Polymer
So if the backend supports it, the client will also?

Op zondag 5 juni 2016 12:52:14 UTC+2 schreef Chuck Horton:

Chuck Horton

unread,
Jun 8, 2016, 12:23:33 PM6/8/16
to Polymer
No. Both the backend and browser needs to support http2 to get the benefit. If the browser does not but server does your web app will still work but won't get the performance improvements.  See below for http/2 browser support.



HTTP/2 protocol

 - OTHER

Networking protocol for low-latency transport of content over the web. Originally started out from the SPDY protocol, now standardized as HTTP version 2.

IE

  1. 8
  2. 11
    See notes:
      12

Edge*

  1. 13
    See notes:
      2
  2. 14
    See notes:
      2

Firefox

  1. 45
    See notes:
      2
  2. 46
    See notes:
      2
  3. 47
    See notes:
      2
  4. 48
    See notes:
      2
  5. 49
    See notes:
      2

Chrome

  1. 29
  2. 45
    See notes:
      2
  3. 48
    See notes:
      2
  4. 49
    See notes:
      2
  5. 50
    See notes:
      2
  6. 51
    See notes:
      2
  7. 52
    See notes:
      2
  8. 53
    See notes:
      2
  9. 54
    See notes:
      2

Safari

  1. 9.1
    See notes:
      23
  2. TP
    See notes:
      23

Opera

  1. 37
    See notes:
      2
  2. 38
    See notes:
      2
  3. 39
    See notes:
      2

iOS Safari*

  1. 8.4
  2. 9.2
    See notes:
      2
  3. 9.3
    See notes:
      2

Opera Mini*

  1. 8

Android Browser*

  1. 4.3
  2. 4.4
  3. 4.4.4
  4. 50

Chrome for Android

  1. 50
    See notes:
      2
  • Notes
  • Known issues (0)
  • Resources (6)
  • Feedback
See also support for the SPDY protocol, precursor of HTTP2.

1Partial support in IE11 refers to being limited to Windows 10.

2Only supports HTTP2 over TLS (https)

3Partial support in Safari refers to being limited to OSX 10.11+

Marco Stolle

unread,
Jun 18, 2016, 8:56:35 AM6/18/16
to Polymer
Thanks for the info, I can see, on the side of the client it looks good :)

(I've been on an off-line holiday - therefor the delay in response)


Op woensdag 8 juni 2016 18:23:33 UTC+2 schreef Chuck Horton:
Reply all
Reply to author
Forward
0 new messages