Skip to content

Commit

Permalink
Removed console debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ulyssear committed Jan 10, 2023
1 parent 114aa65 commit 0027ecf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulyssear/css-in-js-in-html",
"version": "0.1.0",
"version": "0.1.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
11 changes: 5 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ function do_apply(element, selectors, classes, events, media_query) {

function init(document, event = undefined) {
const tag_console = `init : ${event ? `(${event.type})` : ''}`;
console.time(tag_console);
// console.time(tag_console);
// console.log(event?.type);

const elements = document.querySelectorAll('*:not(head, head *)[class]');
Expand All @@ -387,14 +387,13 @@ function init(document, event = undefined) {
subtree: true,
});

console.timeEnd(tag_console);
// console.timeEnd(tag_console);

document.body.removeAttribute('aria-busy');
document.body.removeAttribute('hidden');
document.documentElement.removeAttribute('aria-busy');
}

function init_observer(record) {
console.time('init_observer');
// console.time('init_observer');
for (let i = 0; i < record.length; i++) {
const { type, target, attributeName } = record[i];
if (type === 'attributes' && attributeName === 'class') {
Expand All @@ -408,7 +407,7 @@ function init_observer(record) {
}
}
}
console.timeEnd('init_observer');
// console.timeEnd('init_observer');
}

const CSS_IN_JS_IN_HTML = {
Expand Down

0 comments on commit 0027ecf

Please sign in to comment.