My example page: de:Hilfe:Suche. Move the mouse over the table of contents. This API query is requested over and over again. Note that the titles parameter is empty.
You should add two fixes:
- If the code that triggers the API request gets an empty title it should just return and do nothing. Don't waste the users bandwidth for nothing.
- Exclude the links in the TOC. Don't waste the users CPU time.