A Compactness Result for the Sobolev Embedding via Potential Theory