Minor refactoring and optimization to prevent multiple unnecessary ajax requests
Minor refactoring and optimization to prevent multiple unnecessary ajax requests

justintime4tea/Codiad,fly19890211/Codiad,dragonro/Codiad,lucasfurlani/ACIDE,titiushko/Codiad,Andrey-Pavlov/Codiad,dragonro/Codiad,titiushko/Codiad,hoksi/Codiad,lucasfurlani/ACIDE,cobisimo/Codiad,beavis28/Codiad,dragonro/Codiad,begemot-amp/Codiad,dragonro/Codiad,l3dlp/Codiad,l3dlp/Codiad,Andrey-Pavlov/Codiad,BogusCurry/Codiad,hoksi/Codiad,evertton/Codiad,begemot-amp/Codiad,cobisimo/Codiad,Andr3as/Codiad,evertton/Codiad,lucasfurlani/ACIDE,Tepira/Codiad,BogusCurry/Codiad,Andr3as/Codiad,fly19890211/Codiad,AlphaStaxLLC/Codiad,justintime4tea/Codiad,Tepira/Codiad,beavis28/Codiad,justintime4tea/Codiad,AlphaStaxLLC/Codiad