$('body').before('<div id="fps" style="z-index:10000;position:fixed;top:4px;left:10px;font-weight:bold;background-image:linear-gradient(-90deg, rgb(135, 57, 244),rgb(85, 97, 236), rgb(91, 126, 241));-webkit-background-clip: text;color: transparent;"></div>');var showFPS=(function(){var requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60)};var e,pe,pid,fps,last,offset,step,appendFps;fps=0;last=Date.now();step=function(){offset=Date.now()-last;fps+=1;if(offset>=1000){last+=offset;appendFps(fps);fps=0}requestAnimationFrame(step)};appendFps=function(fps){console.log(fps+'FPS');$('#fps').html(fps+'&nbsp;FPS')};step()})();