AdGate is a smart recommendation engine to track poorly built ad content which degrades our page performance.
Behind the scene, AdGate will run the url in headless chrome and run each of the configured rules against the page and generate a recommendation based on the result from the rule.
Currently 14 rules are built in. Additional rules can be added and plugged in.
- Image scaling
- DNS lookup
- Too many network calls
- Redirect responses
- Paint time
- Time to first byte(Server latency)
- Node count in page
- Too many event listeners in the page
- Script duration
- Frame count in page
- Javascript code coverage
- CSS code coverage
- Console log messages
- Dialogs in page.
- Node.JS
- Typescript
- Puppeteer ๐ โค๏ธ
- Azure Cosmos DB
See the video