|
|
|
|
|
by mstange
4983 days ago
|
|
this.img.src = this.img.src.replace(/Fish[a-zA-Z0-9]\./, "Fish"+this.direction+".")
It looks like this line is executed on every frame for all fish in the level. For Firefox users who have the Ghostery addon installed, this makes things rather slow because every setting of the src property invokes Ghostery to check whether or not it wants to block the image load.Granted, that should be another reason for me to uninstall Ghostery, but I wanted to let you know. |
|