Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
/ nano Public archive

Tiny function library useful for Custom Elements.

License

Notifications You must be signed in to change notification settings

googlearchive/nano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preliminary, experimental, incomplete, undocumented, and generally unsuitable for anything. Expect everything to change.

nano library

Tiny function library useful for Custom Elements.

relative sizes

Custom Elements depend on bits of the Web Components standard platform itself. Specifically, CustomElements and HTMLImports feature support is expected.

These features are natively available in Chrome, and otherwise supported by web-componentsjs polyfills. These elements do not depend on ShadowDOM, so webcomponents-lite is sufficient.

Nano Manifesto

Web Components are Good and True

In all their aspects, including shadow-dom and the new recruit, css property-bags.

Mindshare is Success

Nuf said.

Foundations

Interoperability

Large-scale reuse and sharing, utilize existing DOM contract.

Platformophilia

Use the Web Platform, embrace the DOM, avoid abstracting the surface or using as render-target.

(Web) App Needs

Performance

  • Payload Size
  • Time To First Paint (TTFP)
  • RAIL

Other Features

  • Deep linking
  • i18n
  • a11y
  • Polish
  • Animation
  • Offline/Progressive/Applike (Fizzy)

Code Cost Cutting

  • KISS
  • DRY
  • Reuse

Maintenance Cost Cutting

  • KISS
  • Be nimble
  • Be expressive
  • Be readable
  • Be robust

Can't Know What I Want Until I Have What I Need

Platformophilia Can Satisfy Needs

Custom Elements exposes DOM's fundamental power as a component-model. Component power enables us to surmount the Web App needs in a satisfying manner.

Interoperability Will Fulfill Wants

Once making scoping work is less of a burden, it'll be easier to grasp the usefulness of the deep interoperability afforded by Shadow DOM. At that time the large-scale sharing afforded by the pure element interface will be attractive.

About

Tiny function library useful for Custom Elements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published