I just did some research on this:
Prefetch
load a top-level resource, which is often an HTML page.
Prerender
will also select the children and execute the Javascript code. Using the page visibility API, we can determine the current visibility state of the loaded page.
So, the answer is yes, it will execute JS as long as the user uses Chrome and prerender. In addition, the current version of Google Analytics makes full use of the page visibility API, so the statistics will not be distorted, however, probably, in the wild there is a lot of code whose statistics are distorted due to improper handling of prerdings.
source share