Added generic method for setting properties only when webview is loaded

Signed-off-by: Peter Nelson <peter@peterdn.com>