CLS issue in phpBB

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
saavannah
Registered User
Posts: 12
Joined: Sun Oct 27, 2024 5:03 am

CLS issue in phpBB

Post by saavannah »

Despite numerous updates over the years, this issue has persisted across all phpBB versions.
Screenshot_2 - Copy.png
===
Screenshot_1 - Copy.png
===

origin:
Screenshot_2.png

===
Screenshot_1.png

===

Sorry, I couldn't create a topic in: Styles Support & Discussion

--Spam--
You do not have the required permissions to view the files attached to this post.
Last edited by Brf on Wed Nov 06, 2024 3:32 pm, edited 1 time in total.
Reason: Removed spam link
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53563
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: CLS issue in phpBB

Post by Brf »

What issue?
User avatar
Helter Skelter
Registered User
Posts: 180
Joined: Tue Jan 25, 2005 8:22 am
Location: integramod.com

Re: CLS issue in phpBB

Post by Helter Skelter »

i use onload="this.media='all'" to eliminate this when i create a style with a dark mode. it eliminates the momentary flash light mode while stylesheets load. You can try it on your main stylesheet in prosilver/template/overall_header.html
find

Code: Select all

<link href="{T_STYLESHEET_LINK}" rel="stylesheet">
replace with

Code: Select all

<link href="{T_STYLESHEET_LINK}" rel="stylesheet" onload="this.media='all'">
this is not going to solve all your issues as some info loads as it becomes available from the db and its often dependent on server resources but its a step in the right direction. The resources available to your web browsing device can also affect this
saavannah
Registered User
Posts: 12
Joined: Sun Oct 27, 2024 5:03 am

Re: CLS issue in phpBB

Post by saavannah »

It seems I've done a poor job of describing the issue through the screenshots. There's a red box on the top menu, which appears fully, then disappears to become abbreviated. This issue is named '--spam--'. I apologize again for any confusion.
Last edited by Brf on Wed Nov 06, 2024 3:55 pm, edited 1 time in total.
Reason: Removed link
Well done is better than well said.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53563
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: CLS issue in phpBB

Post by Brf »

Please explain the issue yourself, rather than linking to off-site URLs.

I am not seeing your issue with styles. Perhaps it is your slower internet connection, not loading all the stylesheets at once.
On my phone, I am not seeing any wrap in your example pages.
saavannah
Registered User
Posts: 12
Joined: Sun Oct 27, 2024 5:03 am

Re: CLS issue in phpBB

Post by saavannah »

spam link? do you think I own semrush website? :) OMG

anyway, I don't think the problem is with my phone. It's actually a real issue.

thanks..
Well done is better than well said.
User avatar
invenio
Registered User
Posts: 427
Joined: Wed Dec 09, 2015 1:45 pm
Location: New Hampshire, USA

Re: CLS issue in phpBB

Post by invenio »

Sorry, I don't get what you are trying to say is an issue here. Those screenshots look normal.

Can you please describe, in detail, what you think the problem is?
saavannah
Registered User
Posts: 12
Joined: Sun Oct 27, 2024 5:03 am

Re: CLS issue in phpBB

Post by saavannah »

1. Initially, upon page load, you will notice that the top menu items are fully displayed across two lines, occupying a larger space.
1.png
2. However, after a few moments, these items are condensed into a single line, taking up a smaller area.
2.png
You do not have the required permissions to view the files attached to this post.
Well done is better than well said.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53563
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: CLS issue in phpBB

Post by Brf »

invenio wrote: Wed Nov 06, 2024 5:00 pm what you are trying to say is an issue here.
I am guessing it has something to do with the breadcrumb line wrapping in one screenshot and not wrapping in the other, with ellipsis at the end.
On my phone there is no wrap and no ellipsis.
User avatar
invenio
Registered User
Posts: 427
Joined: Wed Dec 09, 2015 1:45 pm
Location: New Hampshire, USA

Re: CLS issue in phpBB

Post by invenio »

Brf wrote: Wed Nov 06, 2024 5:13 pm
invenio wrote: Wed Nov 06, 2024 5:00 pm what you are trying to say is an issue here.
I am guessing it has something to do with the breadcrumb line wrapping in one screenshot and not wrapping in the other, with ellipsis at the end.
On my phone there is no wrap and no ellipsis.
I don't see that happening with phpBB.com when I load it on either mobile or desktop browsers. But it also loads almost instantaneously so maybe I am missing it. At the end of the day if it just during the loading of the page does that really matter? I mean it's not uncommon for web pages in general to be not in their final completed form during loading.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53563
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: CLS issue in phpBB

Post by Brf »

invenio wrote: Wed Nov 06, 2024 5:19 pm I don't see that happening
On my computer, I can open that topic from the example, squeeze my window as narrow as it goes, and then press <crtl>+ a few times to make the font bigger.
Then, if I F5, I can see the page flashing quickly to put in the ellipsis in place of the wrap. I bet that is what the OP is complaining about.
saavannah
Registered User
Posts: 12
Joined: Sun Oct 27, 2024 5:03 am

Re: CLS issue in phpBB

Post by saavannah »

this issue happen in the phones.. not pc.
Well done is better than well said.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53563
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: CLS issue in phpBB

Post by Brf »

saavannah wrote: Wed Nov 06, 2024 5:28 pm this issue happen in the phones.. not pc.
Indeed. My example was showing a way to duplicate your problem on a PC, since we cannot duplicate it on our phones.
User avatar
Mannix_
Registered User
Posts: 2028
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: CLS issue in phpBB

Post by Mannix_ »

It all comes down to how fast your connection is and how fast your browser can parse the javascript responsible for truncating the breadcrumbs
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
halil16
Registered User
Posts: 1440
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: CLS issue in phpBB

Post by halil16 »

Well... My solution was to prevent the links from being cut and make all the breadcrumbs like this.
https://web.dev/articles/css-scroll-snap
Buy me a coffee ☕
Hire me for your phpBB board. 🚩
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
O BeldeThatTowns*for sale*NEWprice 🛒
"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/

Return to “[3.3.x] Support Forum”