Compactness in spaces of contents