Onenteframe - once

I want to call a single function on frame load that initialises a few settings but only once. Is there a way to call a function onenterframe, but only once?