diff --git a/platform/html5/html.js b/platform/html5/html.js
index <HASH>..<HASH> 100644
--- a/platform/html5/html.js
+++ b/platform/html5/html.js
@@ -32,12 +32,32 @@ StyleCachePrototype.update = function(element, name) {
 	}
 }
 
+StyleCachePrototype._apply = function(entry) {
+	//fixme: make updateStyle incremental
+	entry.element.updateStyle()
+}
+
 StyleCachePrototype.apply = function(element) {
+	var cache = this._cache
+	var id = element._uniqueId
+
+	var entry = cache[id]
 
+	if (entry === undefined)
+		return
+
+	delete cache[id]
+	this._apply(entry)
 }
 
 StyleCachePrototype.applyAll = function() {
+	var cache = this._cache
+	this._cache = {}
 
+	for(var id in cache) {
+		var entry = cache[id]
+		this._apply(entry)
+	}
 }
 
 var StyleClassifier = function (prefix) {
@@ -607,6 +627,7 @@ exports.run = function(ctx, onloadCallback) {
 
 exports.tick = function(ctx) {
 	//log('tick')
+	//ctx._styleCache.applyAll()
 }
 
 var Modernizr = window.Modernizr
added _apply to apply single entry style, added purge style cache from tick (commented for now)