Skip to content

Fantômas Contre Fantômas

Compare
Choose a tag to compare
@macbre macbre released this 21 Aug 18:21

This release brings an improved phantomas browser's scope, tracking of number of events bound to DOM nodes and plenty of code cleanup.

Using --no-externals option you can now measure the performance of your site excluding all 3rd party assets. You can whitelist or block requests to additional domains via --allow-domain and --block-domain respectively.

From within your page's JavaScript code you can call window.__phantomas.setMetric and incrMetric methods to perform custom measurements.

New metrics

  • #37 - Add a metric: number of event listeners bound (events details can be found in log)
  • #44 - Add jQuery related metrics: jQueryVersion and jQueryOnDOMReadyFunctions (backtrace can be found in log)
  • #45 - Add new metrics: number of querySelectorAll() and getElementsByTagName() calls
  • #47 - jQuery: add jQuerySizzleCalls metric

Improvements

  • #38 - Phantomas browser's scope cleanup
  • #35 - Expose setMetric and incrMetric functions to phantomas browser scope
  • #41- Improve colors in verbose log
  • #42 - Cleanup of phantomas notices
  • #43 - Cleanup of domQueries module
  • #11 - Support for JSON config files (via --config)
  • #34 - Abort requests to external resources or given domains

Bug fixes

  • @0a49bdeb - count calls to document.getElementById() and document.getElementsByClassName() as well when reporting "DOMqueries" metric
  • #40 - i, len global JS variables are reported for every URL

Trivia

Fantômas Contre Fantômas