You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an idea for a new feature for jQuery Terminal
It may improve performance if library don't force update DOM when line didn't changed.
this is the code to update the line with a function on every frame:
constindex=term.last_index();(functionloop(){if(!stop){constnew_message=fn();if(new_message!==message){message=new_message;// update only when value changesterm.update(index,new_message);}requestAnimationFrame(loop);}})();
The code need to check if the value change, we can simplify the user code by do this in the library.
The text was updated successfully, but these errors were encountered:
I have an idea for a new feature for jQuery Terminal
It may improve performance if library don't force update DOM when line didn't changed.
this is the code to update the line with a function on every frame:
The code need to check if the value change, we can simplify the user code by do this in the library.
The text was updated successfully, but these errors were encountered: