Breaking functions into steps leads to better performance

 Breaking functions into steps and pausing between the steps had the fourth biggest impact when speeding up my web pages.


This lets the browser respond to the user's clicks and other user interactions.


This also keeps the frame-rate high so screen changes seem smooth.


This also shortens the 'long-running tasks' shown in the 'performance' tab of the 'developer tools' in Chrome.


I also stagger the start of the slideshows so that the web server does not send the pictures back all at the same time. One page has about 20 slideshows. 


There are more tips at: bbingo.xyz/t   


Comments

Popular posts from this blog

webkit-tap-highlight-color in CSS

Steve Jobs quotes