Don’t ever work live on a website. You’ll make a silly mistake and destroy something you spent ages getting just right. You’ll then have to waste your precious bandwidth downloading a 200mb backup, just to restore a couple of 10k files.
Always make a backup.
Better yet, always work locally.
Or use an editor that allows you to Ctrl-Z all the way back to the beginning.