Home › Forums › JavaScript › Can I put a timeout function inside a for loop? › Reply To: Can I put a timeout function inside a for loop?
Yes it is.
I also removed the floats from the slides and backslides. Floats are worse performance-wise than anything else, plus it automatically sizes the width of the backstrip/strip div for however many images are in the slider.
Another thing I did was to generate a stylesheet in the javascript, so recalculating the styles would take less time on each slide change. The script now swaps classes rather than changing styles.
I’m thinking about making a Gaussian blur module to get some experience with the WebWorkers API. Portfolio stuff, and I need to have a bit more activity on my Github. All I have up there is a WordPress plugin I made.