Yiling's Blog

(This site is very broken right now due to
an ill-planned domain migration. Another
version of this site built using Next.js will
be brought online later.)

Tag: front-end

  • Coordinating CSS Repaint and JS Execution

    Writing this down in case I forget it later. This is about the window.requestAnimationFrame() method. More about the method can be found at MDN – Window.requestAnimationFrame(). I wanted to change the appearance of an HTML element, then display an alert box, so, using jQuery and Bootstrap, I did: This did not work as expected as […]