Skip to content

Instantly share code, notes, and snippets.

Avatar

Justin Meyer justinbmeyer

View GitHub Profile
@andrejewski
andrejewski / can-defer.js
Last active Mar 14, 2018
Declaratively defer rendering for large components and lists (Can v2)
View can-defer.js
import Map from 'can/map/';
import Component from 'can/component/';
const viewModel = Map.extend('CanDeferVM', {
define: {
delayMs: {
value: 0,
set: x => parseInt(x, 10)
},
You can’t perform that action at this time.