Right now the method siteNameFromURL calls https://api.stackexchange.com/2.3/sites?pagesize=50000 at least 3 times per site which decreases the API quota drastically.
So refactoring the code to reduce API Calls optimizes Quota usage:
Solution:
Use the Answers API to extract all Answers and their comments which removes the use of comments API
When the user is logged in - store the userdetails in localstorage, so that you don't have to call getMyDetails on each page
Right now the method
siteNameFromURL
callshttps://api.stackexchange.com/2.3/sites?pagesize=50000
at least 3 times per site which decreases the API quota drastically. So refactoring the code to reduce API Calls optimizes Quota usage:Solution: