Weak and strong density results for the Dirichlet energy