Commit Graph

1 Commits

Author SHA1 Message Date
Marvin da13778063 Add request caching and further JS optimizations
- Implement RequestCache class with TTL-based expiration (5 min default)
- Cache results when include_comments=false for faster repeated requests
- Skip caching when comments requested as they change frequently
- Pre-inject helper functions once per page load via _inject_helpers()
- Batch DOM operations: expandAllComments() before extraction
- Single JavaScript call getComments(maxDepth, maxCount) for nested structure
- Reduces JS overhead by 50%+ and eliminates repeated script parsing
2026-03-15 10:10:41 -03:00