Optimisation for JS resources
Social tools conditional working