Initialize extensions when page is completely loaded and not before

Signed-off-by: Simon Busch <morphis@gravedo.de>