Skip to content

Instantly share code, notes, and snippets.

View mrswadge's full-sized avatar
🙈
Coding like a good little 🐒

Stuart Stephen mrswadge

🙈
Coding like a good little 🐒
View GitHub Profile
@paulirish
paulirish / what-forces-layout.md
Last active July 29, 2024 19:02
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@hsiboy
hsiboy / publicorprivate.md
Created October 2, 2014 11:21
Chef knife windows - winrm quickconfig - Error number: -2144108183 0x80338169

##knife windows fails

If you want to use the Chef knife windows, you must be able to run WinRM. WinRM needs to be installed, and then configured correctly. it is easy to configure winrm quickconfig -q but that may fail, and on Winodws 8 the fix is non obvious:

PS C:\Windows\system32> winrm quickconfig -q
WinRM service is already running on this machine.
WSManFault
    Message