Originally posted by FabianFnas
I don't think it is so hard after all. I don't think there will be any performance problems either.
The information is there already. It's only to insert the alt-tag with the appropriate country name.
BTW - keep on with your good work with your scripts!
It's difficult to say without seeing the code how hard it is. It's even harder to predict the performance especially without knowing the data structures or the database design behind it.
The information might be there but is it hardcoded into the PHP page? Is it in a database table? How do you do the lookup? Does this require an extra join on the database? Hacking it into the alt attribute of the image tag is one thing but how should the data be stored in the PHP structure?
When I incorporated the data into the Greasemonkey script and the RHP extension, I had to balance performance on the external server and memory usage in Firefox. Do you preload all of the flag data? Do you hardcode it into the script? Do you load the data on demand?
I think that there are many issues that you have to think about if you want the codebase to remain stable and scalable.