an intro to es6 and custom elements
or,
you might not need a framework
i’m greedy and lazy
sprites!
:)
sprites!
:(
polyfill: v. to fill in an API using JavaScript (or Flash or whatever) if the browser doesn’t have it natively @rem
css3 pie!
:)
css3 pie!
:(
browser wars 2.0
evergreen browser: n. a browser that automatically updates itself outside of the os release cycle @wycats
moar
node.js
require.js
es6
// foo.js
export default {
data: null,
update({ name = '', items = [] } = {}, ...args) {
this.data = { name, items, args });
}
};
// bar.js
import Foo from './foo';
Foo.update();
Foo.update(null, 'bar', 'qux');
Foo.update({ name: 'Waldo' });
Foo.update({ items: ['bar', 'qux'] });
<script>System.import('js/app');</script>
# self-executing (sfx) bundles
jspm --bundle-sfx js/app bundle.js
<script src="bundle.js"></script>
moar
web components
polymer!
:)
polymer!
:(
- HTML Imports
- Custom Elements
- Shadow DOM
HTML Imports- Custom Elements
- Shadow DOM
HTML Imports- Custom Elements
Shadow DOM
document.registerElement()
many of the features you get from a framework have been added to the specs or are now trivial to implement
class
extends
import
export
()=>{}
...args
let
const
html`hello${foo}world`
...
System.import()
document.registerElement()
el.querySelector()
window.fetch()
...
that said,
you might still need a framework
stay curious my friends