News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Starflight

Started by shawnb61, August 23, 2022, 12:47:24 AM

Previous topic - Next topic

Sir Osis of Liver

Only happens sometimes, can be as long as 10-15 seconds and locks up the browser.  Just did it now, but mostly doesn't.  Guessing the background cycles, and if it's caught in between it hangs the browser.

Why the color changer mod?
When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

#41
Quote from: Sir Osis of Liver on August 09, 2024, 01:20:45 PMGuessing the background cycles, and if it's caught in between it hangs the browser.
FYI - Everything it does must be much quicker than it takes to refresh your screen, a tiny fraction of 1/60th of a sec.  Otherwise there would be jitter & display problems all over the place.  Exact same as any site you visit with .js animation on it - including ads.

I suspect you have something else going on, & would look closely at the console.  There should be clues there.

Of course, I'm assuming you're using a current browser.

Quote from: Sir Osis of Liver on August 09, 2024, 01:20:45 PMWhy the color changer mod?
To change colors...

Without it you're missing a bunch of options on the Configuration | Current Theme page, that enable you to make lots of changes in appearance without touching css.  Also, weird things happen with shadows on text, etc., without it, since it controls that.
A question worth asking is born in experience & driven by necessity. - Fripp

shawnb61

@Sir Osis of Liver -
A nit: You introduced some .css syntax errors.  // is not valid css comment syntax.
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

#43
Quote from: shawnb61 on August 09, 2024, 05:39:50 PMA nit: You introduced some .css syntax errors.  // is not valid css comment syntax.

Oops, it's not valid but it works.  Use it for temporary edits then usually remove it.  Must have missed that one (probably more than one).

Am having the hang problem in FF 115.13.  Just saw it again, animation freezes and browser hangs approx. 10 sec. 

Console -


Script terminated by timeout at:
anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:206:13
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
FrameRequestCallback*anim@https://www.thekrashsite.com/forum/Themes/Starflight/scripts/theme.js?smf214_1723250983:200:23
theme.js:206:13
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015. (Reason: CORS request did not succeed). Status code: (null).

None of the "sha512" hashes in the integrity attribute match the content of the subresource. The computed hash is "z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==". community
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js. (Reason: CORS request did not succeed). Status code: (null).

Loading failed for the <script> with source "https://adsystem.simplemachines.org/www/delivery/asyncjs.php". community:44:82
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js. (Reason: CORS request did not succeed). Status code: (null).

<script> source URI is not allowed in this document: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js". community:43:108
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015. (Reason: CORS request did not succeed). Status code: (null).

None of the "sha512" hashes in the integrity attribute match the content of the subresource. The computed hash is "z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==". community
Loading failed for the <script> with source "https://ssl.google-analytics.com/ga.js". community:1:1
Some cookies are misusing the recommended "SameSite" attribute 3


FF is running with max privacy/security settings and Ghostery installed.  Theme appears to be calling scripts from external sources.





When in Emor, do as the Snamors.
                              - D. Lister

Steve

Quote from: Sir Osis of Liver on August 09, 2024, 08:48:26 PMAm having the hang problem in FF 115.13.
Firefox is at 129.0 now if that makes any difference.
My pet rock is not feeling well. I think it's stoned.

shawnb61

#45
Can you reproduce in other browsers?  Do you see it on your mobile device?  Have you tried the current version of FF?

Does anybody else see the issue?

I have tried to reproduce this but cannot, on your site or mine, using different browsers, including FF & FF clone Pale Moon, desktop & mobile.  I even installed Ghostery and jacked up my security settings in FF to max.  I still cannot replicate.

If this were somehow due to the theme, site, or server, I'd have seen it by now. 

My suspicion is that this is either due to the old version of FF or due to a PC issue.

Quote from: Sir Osis of Liver on August 09, 2024, 08:48:26 PMTheme appears to be calling scripts from external sources.
This is not the case.  The theme was written from scratch, in native .php & .js, no external libraries needed.  You can see for yourself, the animation is the last 70 lines of theme.js.

That particular error (script terminated by timeout) normally happens in while() loops that don't end, but there are no while loops in the code.

The only suggestion I can offer on the theme side is to decrease the # of stars.  Just lower the number in the generateStars() call on line 25.

(The default # of stars is 991.  To try to replicate, I actually bumped up the # of stars on my site to 1,000,000.  The animation was very choppy & forum navigation was unacceptably slow, but no problems navigating to/from site & no errors.  At 30,000 stars, I still see perfectly smooth animation, & it's kinda glorious...)

You cannot view this attachment.
You cannot view this attachment.
A question worth asking is born in experience & driven by necessity. - Fripp

shawnb61

Note also that I anticipated that some folks might have issues with .js animation... 

If it's just you, then under your profile, under Look & Layout, there is a checkbox to Disable Animations.
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

FF 115 is the latest version that supports Win 8.1, it's on extended support until Sept.  I'll continue using it until it stops working.  Don't use any other browsers.  Don't see this happening on Samsung tab running android FF, but just taking quick looks.  Just happened again on desktop, it's oddly consistent at around 10 sec.  No one else on that forum has reported any problems (it's not very busy).

And, no, don't want to disable animations, that's what makes this theme shine.

Console shows  blocked links to https://adsystem.simplemachines.org/www/delivery/asyncjs.php, https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js, https://ssl.google-analytics.com/ga.js.  What's that about?


When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

The Disable Animations option is profile-specific, and applies only to the user who sets it.  All other visitors will see the animation (unless they also set the option...). 

At the moment, it appears there is only one PC with the issue with the animation.  My input is to disable the animation on that one PC. 

I provided other options above also, e.g., to lower the # of stars.  (That would be global.)

The blocked links are on this site, simplemachines.org.  They are not on your site.  They are due to this site using google ads. 

Your site is still clean, AFAICT. 

(Note you will see similar cookies whenever you use media embed tools, e.g., for YouTube videos.  That is due to the script streaming the YT video reaching back to Google...)
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

If I ever boot my new Win 11 desktop again (not anytime soon) will try it there.  Not a big deal, just annoying.  If no one else complains I can live with it.
When in Emor, do as the Snamors.
                              - D. Lister

Sir Osis of Liver

Just installed color changer mod to see if it fixes browser freeze, and had a minor problem.  With Arantor sidebar mod installed, color changer installation display is pushed offscreen right, including install button.  Doesn't happen with other mods.
When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

That sounds like an incompatibility problem between those two mods.  Would be more approriate to report on the mod support threads (if at all).
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

Yeah, it's not a big deal, unless user can't find install button.  Also happens in Curve2.  Posted in mod topic, maybe they'll fix it.
When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: