Fixes #625 - Only parse styles when needed