Permalink
Browse files

Optimisation: don't count css nodes for badge

  • Loading branch information...
1 parent 53a7916 commit ce5fd7b68326d73f94a03ab224f35a2580cc9298 @tomimick committed Aug 20, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 load.js
View
@@ -22,12 +22,12 @@ function build_response(request) {
try {
get_js(arr_js, arr_html, is_initial, request ? request.showonclick : false);
- get_css(arr_css, is_initial);
-
var response = {"url":location.href, "js":arr_js, "css":arr_css };
// get html body + template scripts
if (request && !request.badge) {
+ get_css(arr_css, is_initial);
+
response.html = [{"inline":get_dom(),
"count":document.getElementsByTagName('*').length}];
for (var i = 0; i < arr_html.length ; i++) {

0 comments on commit ce5fd7b

Please sign in to comment.