Skip to content

Instantly share code, notes, and snippets.

View ntishkevich's full-sized avatar
⚛️
React

Nick Tishkevich ntishkevich

⚛️
React
View GitHub Profile
@ntishkevich
ntishkevich / prepack-gentle-intro-1.md
Created May 13, 2018 21:17 — forked from gaearon/prepack-gentle-intro-1.md
A Gentle Introduction to Prepack, Part 1

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.
@ntishkevich
ntishkevich / scroll-listener.js
Created March 16, 2018 11:38
60FPS onscroll event listener
(function() {
var lastScrollY = 0;
var ticking = false;
var update = function() {
// do your stuff
ticking = false;
};
var requestTick = function() {