question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Features should not cause layout flap as they load

See original GitHub issue

Just trying this now, and the fact that enhancements take time to load, but they modify the document layout, causing layout flap, makes it quite painful to use.

A couple that immediately stood out:

  • .__rhn__comment-indent uses border-right: 1px solid #ccc which increases its width by one pixel, making the comment shift a pixel to the right (and consequently occasionally reflow the text as well). Use box-shadow: inset -1px 0 #ccc instead so that the border doesn’t affect the layout.

  • “toggle all comments” causes a big vertical jump; maybe float it right on the “add comment” button or the .subtext, or disable it by default, or statically reserve the space in CSS that will be in the first contentful paint, and then be replaced by the actual button/link once it can be added.

There may be others. I’ve tried it for less than four minutes so far.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chris-morgancommented, Jun 14, 2019

A simple rough fix for the header:

[op=news] #pagespace + :not(.__rhn__options-bar) > td {
    padding-top: 31px;
}

As it stands this CSS is typically not loaded until just after the first draw, so there’s still slight layout flap, but it’s much less.

1reaction
Ajedi32commented, Jun 13, 2019

I think the main cause of this issue is that the features currently load in sequence rather than in parallel:

https://github.com/plibither8/refined-hacker-news/blob/a43ecc4525166fe8f95614a6733e2b2441e2300d/src/libs/initialise.js#L139-L142

This, combined with the fact that some features seem to require network operations to fully load, results in a significant delay between when the page loads, and when the features load.

Updating the initializer to load everything in parallel, and updating each feature to make its DOM updates as early as possible would resolve this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Design Process: Flaps - Kitplanes Magazine
Flaps change the geometry of the wing to allow the pilot to change the aerodynamic characteristics of the airplane to match the needs...
Read more >
Flaps - an overview | ScienceDirect Topics
Lack of bending stiffness can flex the flap between the flap tracks so it puts undue load on the tracks or causes the...
Read more >
Understanding Wing Flaps - Aviation Safety Magazine
Plain and split flaps can, to varying degrees, cause an airplane to pitch down when deployed, a factor of how they increase drag...
Read more >
Design methodology for trailing-edge high-lift mechanisms
A second cause for discrepancy is the flap loading underestimation. A higher flap loading results in higher actuation forces and total weight.
Read more >
Chapter 6: Flight Controls - FAA
It should be noted that flight control systems and characteristics can vary ... Design features limit the amount of deflection of flight control...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found