4 ms·
Good stuff. Tip: Rather than repeating .append several times, concatenate your result in a variable, then at the end append the complete result. That way you
by pacomerh 10y ago
Good stuff.
Tip: Rather than repeating .append several times,
concatenate your result in a variable, then at the end append the complete result. That way you just make one append call (performance).
Referring to: https://github.com/surbhioberoi/github-widget/blob/master/src/widget.js#L53-L57 https://github.com/surbhioberoi/github-widget/blob/master/sr...