Google page speed insights and CLS - layout

Under my field data overview, CLS value comes out to be 0.98
whereas when, I look at description for Avoid large layout shifts - CLS contribution is 0.004.
How to figure out the elements that are causing CLS?

Hi Shreya you need to use Chrome click on the 3 dots to the right then go to more tools then developers tools in the screen that appears click on the performance tab click the dot to the left it will turn red when it recording when it finishes you get an orange bar that says Layout shift double click on that bar and it should give you more infomation in the Summery tab in this example it gives the following
Layout Shift Warning Cumulative Layout Shifts can result in poor user
experiences.
Score1.000
Cumulative Score1.000
Had recent input No
Moved fromLocation: [0,0], Size: [360x640]
Moved toLocation: [0,0], Size: [360x640]
Related Node li.velocity-animating::before

Related

CLS over 1 possible?

In our PSI data we are seeing some pages with outrageous CLS numbers which we cannot reproduce or make sense of. In fact, here is an example of one page that has 2.52, but I did not even think it was possible to get over a score of 1.0, which would be a complete shift of everything on the screen, am I right? And is there some problem with the data/chrome, because this is not an isolated incident...our site pages suddenly started suffering terrible CLS data about a month ago and we are bewildered, in Core Web Vitals area of GSC.
Look in the Field Data at the CLS...2.52, but the lab data is .044. PSI Link
Why the difference between lab data and field data?
CLS in the lab tests (synthetic tests) is purely for initial page load and above the fold.
CLS in the field data (real world) is measured from the second the first (well technically second) paint event right until page unload.
So if there are layout shifts happen as someone scrolls the page those keep adding to your CLS.
How can I have a CLS greater than 1?
Imagine you scroll the page and the scroll bar suddenly appears, that would shift the whole page. Now CLS is based on the percentage of the page that moves. So if the whole page shifted to the left by 10px you would get a Layout Shift of almost 1 (think of 1 as 100% of the visible page, 0.5 would be 50% of the visible page moved etc.).
Let's assume that as you scroll the page further the scroll bar suddenly disappears, the whole page now shifts to the right by 10px. This would result in an additional Layout Shift of almost 1.
Now you have had two Layout Shifts of almost 1 - your Cumulative Layout Shift would be almost 2.
I have simplified how layout shift is calculated but I think the principle is easier to understand with the above example.
Real User Metrics (RUM) are the way to capture these sorts of issues.
As for CLS data suddenly changing, I would recommend using something like the web vitals library to pipe the data to either a custom backend or to your analytics so you can see if this is a specific device, screen size etc. causing it.
Spotting Issues with Developer Tools
To see layout shift regions, go to Developer Tools - > Rendering -> Check "Layout Shift Regions" and then load the page a few times, resize it etc.
The only thing I could see is that your mobile menu has some very strange layout shift regions that are particularly bad at large screen sizes. Other than that there is a massive shift when the page loads but that shouldn't take it over 1.
I know the problem is on desktop but I can't remember if they put tablet data in the desktop or the mobile field data...if it is desktop then you may have your answer!

"Book like" view in Openseadragon (several "2 pages" sequences)

Openseadragon newbbie here !
I'm trying to display images by group of 2 AND keeping sequence mode activated, so I can "turn pages".
I managed to display 2 pages, I managed to read pages 1 by 1 in sequence mode, ...
But I just didn't find a way to do both.
To display 2 pages, I loaded 2 tiles sets and configured "sequenceMode=false". Then I set coordinates, to display visuals aside.
To read pages 1 by 1, I loaded several tiles and configured "sequenceMode = true".
What I would like to do is display two visuals (= tiles sets) aside (like an open book). And then, on "next" button click, display the two next visuals from my "tilesSources" array... and so on !
Thank you for your help !
I recommend keeping sequence mode off, like you did for the two pages, and lay out the entire sequence (in pairs) that way. You should then create your own next/previous buttons and use viewer.viewport.fitBounds to animate the viewer to each pair as needed.
Here's an example of a system that does something like that (plus a lot more):
https://iangilman.com/osd/test/demo/m2/
Press the "book" button at the top to see the "two-page" mode. The code for this is here:
https://github.com/openseadragon/openseadragon/tree/master/test/demo/m2
Of course you don't need all of that code, but hopefully it can be a helpful reference.

enlarge Excel dialog box for screen capture

I have to make a high resolution screen capture of part of an Excel session. I can zoom in on the contents of the spreadsheet, but the Sort dialog box I want to capture as well doesn't change size, so its pixel resolution doesn't increase.
Working on Windows 7, Excel Professional Plus 2010, screen 1280x1024 (max).
First look toward right-click blank area of desktop ► Screen resolution ► Make text and other items larger or smaller ► Larger - 150%. May require a reboot so be prepared to shut everything down.
If that is insufficient, next look toward the Windows 7 Magnifier utility. Hint: do not use Alt+PrntScrn to get your screen capture as it seems to collect a .BMP with less quality than a screen capture program's (e.g. Snipping Tool) .PNG capture.
When I went to turn on the magnifier I found a solution that works better for me than the magnifier. Under Control Panel -> Ease of Access -> Optimize Visual Display -> Change the size of text and icons I selected Larger - 150% and logged out and in. There's a little pixelation but it does what I need.
FWIW I don't understand the downvote to the question. Someone might think this is something I should have known.

Can I use an image instead of a title in an Apple Watch app?

How can I put an icon in the top left label and make fullscreen? Apple allocates some space on top for the digital clock and back label. I would like to customize it, but I can't find anything in the SDK to enable this.
The top strip of the Watch screen is reserved for displaying the page title, or occasionally links such as "Cancel" by default for modal views, and the clock. It is not possible to hide this.
It is possible to set an empty title for a page. Some settings will alsoplace a background image behind this text (if you set the mode to 'Aspect Fill', at least in the current Xcode 6.2 beta 3). However, the portion of the image at the top of the screen is simply occluded by a black strip, so this does not achieve what you want.
Additionally, Apple have specifically recommended against displaying logos on the Apple Watch screen, with the rationale that the screen is too small to display for the user anything but actual content.
To set the Global tint:
Select the Interface Controller itself in Interface Builder by clicking on the Yellow circle at the top of the view of the screen.
Press Cmd-Opt-1 to display the File Inspector section of the Utilites on the right hand side.
Set the 'Global Tint' option in the section 'Interface Builder Document', as per the screenshot.
Not possible in the first cut but I think it will come later.
It's not actually a back label. The text in the top left of the Watch screen is the title of the current WKInterfaceController. You can change it by using -[WKInterfaceTitle setTitle:], but you are limited to content that is expressible in an NSString (so no UIImages).
It is possible to customise the status bar in watchOS 4.
Select your interface controller in the storyboard
Open the attributes inspector
Check the Full Screen checkbox
After doing this you can add your custom image to the left of the statusbar.

AUTOCAD: TEXT becomes very small and vertical when placed in title block in layout screen

I am using AUTOCAD 2014, and trying to set up a simple title block (name and date of drawing etc.). The problem is that when I input the text using MTEXT or DTEXT and press escape to end that command the text then becomes very small and barely noticeable in the title block (figure (A) and (B) below). It is also aligned in the vertical plane. Does anyone know a way round this? The Autodesk forum (AUGI) in Nov. 2013, at : TEXT SUDDENLY DISAPPEARS?, also describes this problem but I didn't find it helpful enough to solve it.
Thanks,
Brendan
I don't believe this question belongs in Stack overflow but rather Super User, additionally the reference you provided directs to Revit Architecture forum not AutoCAD 2014.
With that aside, check your WYSIWYG settings during the text editor. You can toggle that, while in the editor, by bringing up the context menu > Editor Settings > Always Display in WYSIWYG. I suspect that your text style is currently configured at a small size and with vertical effect. Check your current STYLE.
The problem was solved by:
using 'context menu' (right click mouse) in the text mode i.e. in DTEXT
follow 'editor settings' to display 'Always Display in WYSIWYG'
In the 'home' tab select 'Annotation' and under 'text style' select 'manage text styles'
Change the 'height' from say 0.13 to 3.0
Then under 'Annotation' again and in 'dimension style' select 'standard' which deselects 'ISO - 25'
This gives a reasonably sized text that is horizontal as opposed to vertical.

Resources