Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

List browser global that we need to support in Universal #534

@PatrickJS

Description

@PatrickJS

The next version of Universal can support/mock any browser global so please list out any of the that are the most important ones for me to make sure you can use it.

It's worth noting there is a best practice way of dealing with 3rd party services that should be considered before falling back to these supported globals

Browser

  • document
  • document.querySelector
  • document.querySelectorAll
  • document.cookie
  • XMLHttpRequest
  • fetch
  • localStorage
  • navigator
  • history
  • location
  • navigator
  • localStorage
  • sessionStorage
  • window (please list out which properties you're using on window and how you use it)
  • window.pageYOffset
  • window.pageXOffset
  • window.scrollTo
  • window.addEventListener
  • {{ list_your_global }}

Common Libs (with globals)

  • jQuery
  • {{ list_your_global }}

Research (we need to determine if possible)

  • Polymer
  • Foundation
  • d3
  • videojs
  • angularfire2
  • firebase
  • @angular2-material

Supported (so far)

  • {{ }}

Twitter Poll
https://twitter.com/gdi2290/status/776893828045246466

The reason for this is to allow faster adoption of Universal JavaScript with components that the developer may or may not have control over

Please leave a comment of a browser global that you use (if window make sure to include some of the properties or functions used) and what you're using it for to make it in the next release

update:
added research list
added polymer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions