Hey!
Yeah that is the expected behaviour for that API actually - it only returns something if there is a viewport - AKA the full page isn’t rendered (I didn’t realize this when I wrote that snippet)
I’m working on a better code snippet for you - hold tight. This is a bit harder problem to solve than I thought.
Sorry about that!
Logan