Platform.js

158 views
Skip to first unread message

cletusw

unread,
Jul 17, 2014, 1:10:25 AM7/17/14
to polym...@googlegroups.com
Now that HTML Imports, Shadow DOM, HTML Templates, Mutation Observers, and Object.observe() are native in Chrome Stable, are there any plans to enable use of Polymer without Platform.js? Or at least with just a sub-set (like pointer events/gestures, Node.bind and web animations)? Obviously it won't make sense for a vast majority of use cases, but for those who can restrict their audience to Chrome, 40+kb (gzipped) less to download sounds extremely appealing.

Jan Marthedal Rasmussen

unread,
Jul 17, 2014, 8:20:57 AM7/17/14
to polym...@googlegroups.com
As I understand it, Polymer and platform.js are unrelated in the following sense:
If your browser has native support for the web components you mention, you can just skip loading platform.js and only use Polymer.
On the other hand, if you want to use web components in a native VanillaJS way, just can just load platform.js to get the increased browser support.

Platform.js just happens to be developed by the same group of people...

- Jan

Steve Orvell

unread,
Jul 17, 2014, 11:32:44 AM7/17/14
to Jan Marthedal Rasmussen, polym...@googlegroups.com
Yes, we're working towards making a version of polymer that works without platform.js on supported platforms.


Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/38789cdb-a918-4b3b-8429-dc817d2161ed%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

cletusw

unread,
Jul 17, 2014, 11:34:42 AM7/17/14
to polym...@googlegroups.com, jan.ma...@gmail.com
Awesome! Thanks, Steve!

Rob Dodson

unread,
Jul 17, 2014, 12:29:13 PM7/17/14
to Jan Marthedal Rasmussen, polymer-dev
If your browser has native support for the web components you mention, you can just skip loading platform.js and only use Polymer.

There are still a few bits of Polymer which rely on platform.js so we'll need to untangle those threads first. As Steve mentioned, it's something we're working on :) 


On Thu, Jul 17, 2014 at 5:20 AM, Jan Marthedal Rasmussen <jan.ma...@gmail.com> wrote:

Follow Polymer on Google+: plus.google.com/107187849809354688692

---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.

Billy Graban

unread,
Jul 17, 2014, 3:04:30 PM7/17/14
to polym...@googlegroups.com, jan.ma...@gmail.com
Very cool to hear!  Just starting learning about this system and I look forward to learning as much as possible.  I'm new to web programming, but this solution is very powerful.
Reply all
Reply to author
Forward
0 new messages