jsFileLoadYLT.js 733 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Meters the number of page errors, and provides traces as offenders for "jsErrors" metric
  3. */
  4. exports.version = '0.0';
  5. exports.module = function(phantomas) {
  6. 'use strict';
  7. /*phantomas.on('recv', function(entry, res) {
  8. if (!entry.isJS) {
  9. return;
  10. }
  11. // Yeah, this is weird, i'm sending the information back to the browser...
  12. phantomas.evaluate(function(url) {
  13. (function(phantomas) {
  14. phantomas.pushContext({
  15. type: 'script loaded',
  16. callDetails: {
  17. arguments: [url]
  18. }
  19. });
  20. })(window.__phantomas);
  21. }, entry.url);
  22. });*/
  23. };