I flagged this answer based on the NAA flag description:
This was posted as an answer, but it does not attempt to answer the question. It should possibly be an edit, a comment, another question, or deleted altogether.
(emphasis mine)
However, it was disputed.
The question is specifically asking about how to run a piece of code only once on the first page load.
The linked answer only addresses the 'run onload' aspect of the question. It completely misses the aspect of running the code only once which is key to this quesiton.
Based on the above, was I wrong to flag it as NAA?