Optimize script and css to remove "mobiletitle", should improve performance of setting id counts by ~1/3 noticable on larger threads

indiachan-spamvector
Thomas Lynch 3 years ago
parent b167cec7f6
commit 6198def3f2
  1. 2
      CHANGELOG.md
  2. 10
      gulp/res/css/style.css
  3. 1
      gulp/res/js/threadstat.js

@ -14,5 +14,5 @@
- Update socket-io 2.x to 4.x
##### 0.1.3
- Script optimizations, improve page load speed
- Script optimizations, improve script execution speed especially on longer threads
- Extra (u) download link for no reason

@ -1366,10 +1366,10 @@ row.wrap.sb .col {
width: 100%;
min-width: unset;
}
[title], [mobiletitle] {
[title] {
position:relative
}
[title]:hover:after, [mobiletitle]:hover:after {
[title]:hover:after {
color: white;
font-size: small;
border-radius: 2px;
@ -1385,10 +1385,10 @@ row.wrap.sb .col {
[title]:hover:after {
content:attr(title);
}
[mobiletitle]:hover:after {
content:attr(mobiletitle);
.user-id[title]:hover:after {
content:"Double tap to highlight" attr(data-count);
}
[title]:hover:before, [mobiletitle]:hover:before {
[title]:hover:before {
content: '';
position: absolute;
top: -6px;

@ -15,7 +15,6 @@ window.addEventListener('DOMContentLoaded', (event) => {
if (updateId && updateId !== idString) { continue; }
const count = idMap.get(idString);
idElems[i].setAttribute('data-count', ` (${count})`);
idElems[i].setAttribute('mobiletitle', `Double tap highlight (${count})`);
idElems[i].setAttribute('title', `Double click to highlight (${count})`);
}
}

Loading…
Cancel
Save