Editing tags on tags page extremely slow

You have 4000 tags. Your browser has to download them and load them all into memory. This is pain that you asked for. Even if there were no performance issue it’ll be insanely hard for a user to choose the right one.

You need to rethink having 400 tags. 400 is probably too many.