Add js code to print only once after reloading

Job ID: 37186993

Budget: $30 – $250 USD

My js code prints all new orders or items inside ul li when page loads. But sometimes it prints everything for no reason. I need code correction to only print new items and orders and stop printing when time of order is not same with time of print. If order has already been printed
Related categories: JavaScript HTML jQuery / Prototype AngularJS