Skip to content

Instantly share code, notes, and snippets.

View SunskyXH's full-sized avatar
:bowtie:
be happy

SunskyXH SunskyXH

:bowtie:
be happy
View GitHub Profile
@bvaughn
bvaughn / index.md
Last active September 4, 2025 07:11
Interaction tracing with React

This API was removed in React 17


Interaction tracing with React

React recently introduced an experimental profiler API. After discussing this API with several teams at Facebook, one common piece of feedback was that the performance information would be more useful if it could be associated with the events that caused the application to render (e.g. button click, XHR response). Tracing these events (or "interactions") would enable more powerful tooling to be built around the timing information, capable of answering questions like "What caused this really slow commit?" or "How long does it typically take for this interaction to update the DOM?".

With version 16.4.3, React added experimental support for this tracing by way of a new NPM package, scheduler. However the public API for this package is not yet finalized and will likely change with upcoming minor releases, so it should be used with caution.

@PCreations
PCreations / rxjs-diagrams.md
Last active July 16, 2025 17:55
Super Intuitive Interactive Diagrams to learn combining RxJS sequences by Max NgWizard K
@Chion82
Chion82 / 来抢课了.js
Last active June 12, 2017 04:02
选课高亮提示
electCourseTable.config.time=500;
window.confirm=function(){
return true;
};
function updateCountHint(){
$('.stdCount').each(function(){
var numArray = $(this).html().split('/');
if (numArray[2] >= 1) {
$(this).css({'background-color':'red'});
if ($(this).parent().find('a[title="点击查看教学任务信息"]').html().indexOf('日语') !== -1) {