Current time: 08-11-2020, 07:56 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to inject an external prefetch library into a scripted test
04-25-2020, 05:24 AM
Post: #2
RE: Trying to inject an external prefetch library into a scripted test
Ok found the answer to this one. If you are using a scripted WPT test then you cannot inject the script via the "inject script" UI. You need to include it as part of your WPT script. So my script now looks like

Code:
navigate https://www.foo.com
execAndWait ar js = document.createElement("script"); js.type = "text/javascript"; js.src = "https://cdnjs.cloudflare.com/ajax/libs/quicklink/2.0.0-alpha/quicklink.umd.js"; js.onload = function() {quicklink.listen();}; document.body.appendChild(js);
sleep 10
navigate https://www.foo.com/products.html
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Trying to inject an external prefetch library into a scripted test - jpakhil@gmail.com - 04-25-2020 05:24 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)