I get the following message in the js console with a current Drupal 8 version:

drupal.js?v=8.7.10:13 Uncaught TypeError: a.indexOf is not a function
    at r.fn.init.r.fn.load (jquery.min.js?v=3.2.1:4)
    at Object.attach (xhprof.js?v=1:26)
    ...
CommentFileSizeAuthor
#2 xhprof_js_load_deprecated_3095677_1.patch660 bytesvurt

Comments

vurt created an issue. See original summary.

vurt’s picture

StatusFileSize
new660 bytes

I attached a patch to fix this. I also added core/jquery as a dependeny to make shure that jquery is loaded before the module js.

andypost’s picture

Status: Active » Reviewed & tested by the community

Going to commit it, nice catch

  • andypost committed 2b63263 on 8.x-1.x authored by vurt
    Issue #3095677 by vurt: JS event alias $(window).load is deprecated
    
andypost’s picture

Status: Reviewed & tested by the community » Fixed
diff --git a/xhprof.libraries.yml b/xhprof.libraries.yml
old mode 100755
new mode 100644

Fixed on commit

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.