制作信息、评论、视频和播放列表的标签
//
means comments. They are completely ignored in modern browsers.
There would be no change of speed. All your time difference measurement will be just due to the random white noise of your computer execution.
100x faster
is undefined for 0ms
ChatGPT answer for your understanding:
Removing //
comments in JavaScript does not improve performance at runtime because comments are not part of the code that gets executed by the JavaScript engine. Here's why:
When a JavaScript file is loaded:
//
or /* */
).So once the code is parsed, comments do not exist anymore — they're simply discarded.
Since comments are:
They add zero overhead during runtime — no CPU cycles, no memory usage, nothing.
There are cases where removing comments helps, but they’re not about performance:
However, once the code is downloaded and parsed, whether it had comments or not makes no difference to runtime performance.
Summary:
Removing
//
comments in JavaScript has no effect on execution performance, only potentially on file size and load times — and even that’s usually handled automatically by build tools.
WTF?!
I remove this trash! no just comments omg.
// @exclude /^https?://\w+\.youtube\.com\/live_chat.*$/
// @exclude /^https?://\S+\.(txt|png|jpg|jpeg|gif|xml|svg|manifest|log|ini)[^\/]*$/
// @require https://cdn.jsdelivr.net/gh/cyfung1031/userscript-supports@c2b707e4977f77792042d4a5015fb188aae4772e/library/nextBrowserTick.min.js
Script no need anything and no need cookie, no need storage,.. dissabled all = insta load all fast
Lmao bro, i delete all your trash from Userscript HEAD and script loading 100x faster.
// ==UserScript==
// @name Tabview YouTube Totara
// @version 5.0.107
// @namespace https://www.youtube.com/
// @author CY Fung
// @license MIT
// @match https://www.youtube.com/*
// @description To make tabs for Info, Comments, Videos and Playlist
// @icon https://raw.githubusercontent.com/tabview-youtube/Tabview-YouTube-Totara/main/images/icon128p.png
// @supportURL https://github.com/tabview-youtube/Tabview-YouTube-Totara
// @run-at document-start
// @grant GM_getResourceText
// @grant GM.getResourceText
// @grant GM_registerMenuCommand
// @grant GM_addElement
// ==/UserScript==