Skip to content

Instantly share code, notes, and snippets.

View Khachatour's full-sized avatar
Crafting

Khachatur Khachatour

Crafting
View GitHub Profile
@Khachatour
Khachatour / README.md
Created April 20, 2023 13:03 — forked from svallory/README.md
Figma Plugin Development Live Reload

Figma Plugin Development Live Reload

  1. Create a run-plugin.sh somewhere in your project
  2. Copy the code from the run-plugin.sh file in this gist
  3. Install nodemon with yarn add --dev nodemon
  4. Add a script in the scripts property of your package.json replacing PLUGIN_CODE_FOLDER by the path to the folder where your plugin code lives
    "scripts": {
    

"livereload": "nodemon --watch PLUGIN_CODE_FOLDER --exec run-plugin.sh"

Keybase proof

I hereby claim:

  • I am khachatour on github.
  • I am khachatur (https://keybase.io/khachatur) on keybase.
  • I have a public key ASC0SIEIfFRbrhsY2lv3w2xi6pTumaeVCyr4I6rttcy_dgo

To claim this, I am signing this object:

@Khachatour
Khachatour / what-forces-layout.md
Created November 27, 2019 13:27 — forked from paulirish/what-forces-layout.md
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.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
mock content
mock content
mock content
mock content
mock content
blabla
We couldn’t find that file to show.