YouTube SLOW!

General project discussion.
Use this as a last resort if your topic does not fit in any of the other boards but it still on-topic.
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.

Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 5146
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: YouTube SLOW!

Unread post by Night Wing » 2022-09-21, 09:43

@ Clasof56

The only problem with Invidious is, it doesn't support some of the high definition settings which YouTube does. As an example the "Haley Otto Style" titled surfing video in YouTube can be seen in 2160p60 (4K) high definition.

But in Invidious, the highest high definition for the exact same video is only 720p.
Linux Mint 21.3 (Virginia) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
MX Linux 23.2 (Libretto) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox
Linux Debian 12.5 (Bookworm) Xfce w/ Linux Pale Moon, Linux Waterfox, Linux SeaLion, Linux Firefox

Clasof56
Apollo supporter
Apollo supporter
Posts: 47
Joined: 2015-05-17, 11:27
Location: florida

Re: YouTube SLOW!

Unread post by Clasof56 » 2022-09-21, 21:58

Yes, night wing, i agree. but for me most youtube videos dont have to be really great quality. Football games come out really good plus you can download videos from indidious and harder to do with you tube. anyway, just another option to try to work around a small problem. clas

User avatar
somdcomputerguy
Lunatic
Lunatic
Posts: 381
Joined: 2014-02-23, 17:25
Location: Greenbrier County, West Virginia
Contact:

Re: YouTube SLOW!

Unread post by somdcomputerguy » 2022-09-22, 01:29

Clasof56 wrote:
2022-09-21, 21:58
Yes, night wing, i agree. but for me most youtube videos dont have to be really great quality.
Most of the videos I watch I don't actually watch. They're usually music studio recordings, covers, or live performances that I just listen to. The main problem I experience between Pale Moon and Youtube that is really just a PIMA (pain in my..) annoyance is that when a clip starts the audio and video play just fine, but only for a second or so.. The video freezes but the audio continues normally. After 3 or 4 seconds the video will start playing again. I have tried all the suggestions given to others with YT issues and none have worked to rectify my specific situation, and it really doesn't matter (to me) anyway, because I just want to be able to hear videos..

Now sometimes there's a TV channel or a movie that I want to stream. I just use a different browser then. For some reason, that other browsers' main use has become 'to stream only' more and more.. :think:

I must say that I also use the PMPlayer add-on a bit more than occasionally.
:cool: -bruce /* somdcomputerguy.com */
'If you change the way you look at things, the things you look at change.'

User avatar
THX-1139
Lunatic
Lunatic
Posts: 453
Joined: 2019-06-13, 13:42
Location: In a place with no YT

Re: YouTube SLOW!

Unread post by THX-1139 » 2022-09-24, 17:12

One other tweak I am using for YT I failed to mention in my earlier post -I quite frankly forgot I was using it- is a Grease monkey script for the "old" YT GUI.
Apparently it worked for me, as I did not remove it and worked as advertised, here it is just in case someone wants it:
// ==UserScript==
// @name YouTube Old Layout
// @name:pt-BR Layout Antigo do YouTube
// @name:ar YouTube Old Layout
// @name:bg YouTube Old Layout
// @name:cs YouTube Old Layout
// @name:da YouTube Old Layout
// @name:de YouTube Old Layout
// @name:el YouTube Old Layout
// @name:eo YouTube Old Layout
// @name:es YouTube Old Layout
// @name:fi YouTube Old Layout
// @name:fr YouTube Old Layout
// @name:fr-CA YouTube Old Layout
// @name:he YouTube Old Layout
// @name:hu YouTube Old Layout
// @name:id YouTube Old Layout
// @name:it YouTube Old Layout
// @name:ja YouTube Old Layout
// @name:ko YouTube Old Layout
// @name:nb YouTube Old Layout
// @name:nl YouTube Old Layout
// @name:pl YouTube Old Layout
// @name:ro YouTube Old Layout
// @name:ru YouTube Old Layout
// @name:sk YouTube Old Layout
// @name:sr YouTube Old Layout
// @name:sv YouTube Old Layout
// @name:th YouTube Old Layout
// @name:tr YouTube Old Layout
// @name:uk YouTube Old Layout
// @name:vi YouTube Old Layout
// @name:zh-CN YouTube Old Layout
// @name:zh-TW YouTube Old Layout
// @description Permanently recover the old YouTube layout!
// @description:pt-BR Recupere permanentemente o antigo layout do YouTube!
// @description:ar استعادة تخطيط يوتيوب القديم بشكل دائم!
// @description:bg Задължително възстановете старото оформление на YouTube!
// @description:cs Trvale obnovit původní rozložení YouTube!
// @description:da Gendan det gamle YouTube-layout permanent!
// @description:de Stellen Sie das alte YouTube-Layout dauerhaft wieder her!
// @description:el Ανακατέψτε οριστικά την παλιά διάταξη του YouTube!
// @description:eo Konstante reakiri la malnovan YouTube-aranĝon!
// @description:es ¡Recupere permanentemente el antiguo diseño de YouTube!
// @description:fi Palauta vanha YouTube-asettelu pysyvästi!
// @description:fr Récupérez définitivement l'ancienne mise en page YouTube!
// @description:fr-CA Récupérez définitivement l'ancienne mise en page YouTube!
// @description:he השחזר לצמיתות את הפריסה הישנה של YouTube!
// @description:hu Véglegesen helyreállíthatja a régi YouTube-elrendezést!
// @description:id Pulihkan tata letak YouTube lama secara permanen!
// @description:it Ripristina definitivamente il vecchio layout di YouTube!
// @description:ja 古いYouTubeレイアウトを完全に復元します!
// @description:ko 기존 YouTube 레이아웃을 영구적으로 복구하십시오!
// @description:nb Gjenopprett den gamle YouTube-layouten permanent!
// @description:nl Herstel permanent de oude YouTube-lay-out!
// @description:pl Trwale przywróć stary układ YouTube!
// @description:ro Recuperați definitiv vechea structură YouTube!
// @description:ru Навсегда восстановить старый макет YouTube!
// @description:sk Natrvalo obnovte staré rozloženie YouTube!
// @description:sr Trajno oporavite stari izgled YouTubea!
// @description:sv Återställ den gamla YouTube-layouten permanent!
// @description:th กู้คืนเค้าโครง YouTube แบบเก่าอย่างถาวร!
// @description:tr Eski YouTube düzenini kalıcı olarak kurtarın!
// @description:uk Постійно відновіть старий макет YouTube!
// @description:vi Khôi phục vĩnh viễn bố cục YouTube cũ!
// @description:zh-CN 永久恢复旧的YouTube布局!
// @description:zh-TW 永久恢復舊的YouTube佈局!
// @namespace https://greasyfork.org/users/152924
// @homepageURL https://greasyfork.org/scripts/402219
// @supportURL https://greasyfork.org/scripts/402219/feedback
// @author Punisher
// @version 1.3.r
// @date 2020-06-16
// @compatible chrome
// @compatible firefox
// @compatible opera
// @compatible safari
// @license CC BY-NC-ND 4.0 International. https://creativecommons.org/licenses/by-nc-nd/4.0/
// @include http://www.youtube.com/*
// @include https://www.youtube.com/*
// @grant none
// @run-at document-start
// ==/UserScript==

(function() {
var date = new Date();
date.setTime(date.getTime());
var targetPrefs={'f5':'30030','f6':'8'};
var prefStr=document.cookie.split(' ').filter(o=>o.indexOf('PREF=')!==-1)[0] || 'PREF=';
var prefEntries=prefStr.substr(5).split('&');
var found=false;
var changed=false;
for (var i=0; i<prefEntries.length; i++) {
for(let [key,value] of Object.entries(targetPrefs)) {
var found=false;
for (var i=0; i<prefEntries.length; i++) {
if (prefEntries.indexOf(key) === 0) {
found=true;
if (prefEntries.substr(key.length+1)!==value) {
prefEntries=value;
changed=true;
}
}
}
if (!found) {
prefEntries.push(key+'='+value);
changed=true;
}
}
}

window.addEventListener("spfdone", function(e) {
if(!document.getElementById("content").classList.contains('content-alignment')){
document.getElementById('content').classList.add('content-alignment');
}
});

window.addEventListener("load", function(event) {
if(!document.getElementById("content").classList.contains('content-alignment')){
document.getElementById('content').classList.add('content-alignment');
}
});

if (changed) {
var newCookie='PREF='+prefEntries.join('&')+';domain=.youtube.com;path=/';
document.cookie=newCookie;
window.setTimeout(location.reload.bind(location,true),100);
}
})();
Pale Moon 32.5.0 (64) Win7 pro (64) Intel Core i5-3570 3.4GHz-16 GB DDR3

"The biggest joke on mankind is that computers have started asking humans to prove they're not a robot."

"Man needs difficulties; they are necessary for health." ~Carl Jung

User avatar
spanky81
New to the forum
New to the forum
Posts: 1
Joined: 2022-10-21, 14:49
Contact:

Re: YouTube SLOW!

Unread post by spanky81 » 2022-10-21, 14:52

I had similar problems with other browsers and then I decided to upgrade RAM to 16GB DDR4 and everything became fast.

User avatar
Massacre
Moon lover
Moon lover
Posts: 77
Joined: 2020-05-01, 13:16
Contact:

Re: YouTube SLOW!

Unread post by Massacre » 2022-12-26, 20:03

Pale Moon definitely has a problem on Youtube and some other Google sites, because of JS. The only proper solution for now is to use some chromium for it instead... And that's not CPU or RAM problem, because all of this JS seem to be executed in a single thread.

User avatar
Mimine
Newbie
Newbie
Posts: 6
Joined: 2022-12-12, 20:33

Re: YouTube SLOW!

Unread post by Mimine » 2022-12-26, 21:46

Yes I tried palemoon and firefox on the same PC on youtube, and palemoon was slow and firefox was fast, so the problem comes from palemoon.

User avatar
somdcomputerguy
Lunatic
Lunatic
Posts: 381
Joined: 2014-02-23, 17:25
Location: Greenbrier County, West Virginia
Contact:

Re: YouTube SLOW!

Unread post by somdcomputerguy » 2022-12-26, 22:14

Mimine wrote:
2022-12-26, 21:46
.. so the problem comes from palemoon.
No it doesn't. The Pale Moon browser doesn't ignore the problem thus making the problem more apparent. The problem might start with a G and there's a lot of $'s in it too.
:cool: -bruce /* somdcomputerguy.com */
'If you change the way you look at things, the things you look at change.'

User avatar
Massacre
Moon lover
Moon lover
Posts: 77
Joined: 2020-05-01, 13:16
Contact:

Re: YouTube SLOW!

Unread post by Massacre » 2022-12-27, 14:18

The problem comes from that specific JS.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 932
Joined: 2021-01-26, 11:18

Re: YouTube SLOW!

Unread post by Kris_88 » 2022-12-27, 17:22

Pale Moon does not support webcomponents now, so Youtube loads polyfill. Webcomponents functionality is emulated by polyfill. This emulation is extremely slow.

User avatar
UCyborg
Fanatic
Fanatic
Posts: 171
Joined: 2019-01-10, 09:37

Re: YouTube SLOW!

Unread post by UCyborg » 2023-03-04, 12:16

I'm trying out Pale Moon 32.1.0b3 with Web Components support and TBH, feels about the same as with adding Firefox/42.0 in the user agent. Maybe it makes a difference on even slower machine? I have an aging AMD Phenom II X4 920 CPU clocked at 3 GHz, which wasn't very fast even when it was new. Also, 64-bit build has always been a bit slower in my experience, plus obviously more RAM hungry, so I've been sticking with 32-bit build. Additionally, Pale Moon continues to be incredibly slow on Speedometer 2.0 and it shows in real life.

Has anyone experimented with alternative front-ends for YouTube? So far, I've tried Invidious (eg. https://invidious.weblibre.org/) and Piped (eg. https://piped.video/). Invidious insists on using AV1 codec in DASH mode (allows higher resolutions), which is way too heavy for older machines while Piped doesn't like caching, so put video on the loop and portions of it will have to re-download over and over. I wonder if there's a trick that could influence caching on this front-end.

User avatar
Mæstro
Lunatic
Lunatic
Posts: 459
Joined: 2019-08-13, 00:30
Location: Casumia

Re: YouTube SLOW!

Unread post by Mæstro » 2023-03-04, 17:36

I like Invidious and have set any YouTube link to redirect thither. To avoid automatic play (needful for bandwidth limits), I disable scripts on the site and download or open any reel I would like to watch. While I wish it would let me select 240p with sound over 360p, it works well.
Browser: Pale Moon (Pusser’s repository for Debian)
Operating System: Linux Mint Debian Edition 4 (amd64)
※Receiving Debian 10 LTS security upgrades
Hardware: HP Pavilion DV6-7010 (1400 MHz, 6 GB)
Formerly user TheRealMaestro: æsc is the best letter.

User avatar
Sob__
Lunatic
Lunatic
Posts: 251
Joined: 2014-02-17, 01:12
Location: CZ

Re: YouTube SLOW!

Unread post by Sob__ » 2023-03-04, 17:46

I do see significant difference with Web Components beta. On slighly older computer (i5-7500, Win10), same random YT video in 32.0.1 takes 16 seconds until UI completely renders and CPU usage drops down. In 32.1.0b3 it drops down to 10 seconds, so great job. Of course in Edge it takes about 3 seconds.

As for other frontends, Piped works great when it comes to speed, but for me it gets stuck relatively often. Which is something on server side, because it happens in all browsers, there are 403 (I think) network errors for some reason.

User avatar
THX-1139
Lunatic
Lunatic
Posts: 453
Joined: 2019-06-13, 13:42
Location: In a place with no YT

Re: YouTube SLOW!

Unread post by THX-1139 » 2023-03-04, 19:08

Since I stopped viewing Any YT vids (maybe once in a blue moon) I had to check and see if YT had gotten worse: I clicked an external link and it took approx 5 seconds tops, to start playing. I then clicked a link within YT and it took about 3 seconds to start play, the last time I was logged into YT (not too long ago but not this time) it would take 1-2 secs to start play...'Shrugs' and/or :coffee:
Pale Moon 32.5.0 (64) Win7 pro (64) Intel Core i5-3570 3.4GHz-16 GB DDR3

"The biggest joke on mankind is that computers have started asking humans to prove they're not a robot."

"Man needs difficulties; they are necessary for health." ~Carl Jung

User avatar
Sob__
Lunatic
Lunatic
Posts: 251
Joined: 2014-02-17, 01:12
Location: CZ

Re: YouTube SLOW!

Unread post by Sob__ » 2023-03-04, 20:24

There's difference between when it starts to play (that's not too bad, it's roughly half of it) and when UI becomes usable. In theory, you come for the video, so it's good when it starts to play early. Except when it's preceded by annoying ads that you can't even skip when UI doesn't react. And it's just the initial access, further navigation is fine.

User avatar
UCyborg
Fanatic
Fanatic
Posts: 171
Joined: 2019-01-10, 09:37

Re: YouTube SLOW!

Unread post by UCyborg » 2023-03-04, 23:24

I'm curious what load time will be with final 32-bit build. If I compare with Firefox 60 user agent that was used before by default, initial load is definitely much better, it needed about 30 seconds then. It's like they serve slower polyfill to Firefox 60...if it's even connected to polyfill or something else in the internals.

Yeah, I forgot, I experienced interruptions with Piped as well. I like that there's a setting for codecs though, Invidious could really use that.

jangdonggun1234
Fanatic
Fanatic
Posts: 104
Joined: 2013-06-06, 01:29

Re: YouTube SLOW!

Unread post by jangdonggun1234 » 2023-03-14, 18:34

As people said, using alternative front-ends fix slowness problem, I also want to share my way of fixing slowness of Youtube, it's popping video to MPV player and watch from MPV instead, better performance, better features, there's no downsides: viewtopic.php?p=237564#p237564

:thumbup:

Locked