We present a constructive proof of the fact, that for any subset 𝒜 ⊆ ℝm and a countable family ℱ of bounded functions f : 𝒜 → ℝ there exists a compactification 𝒜′ ⊂ ℓ2 of 𝒜 such that every function f ∈ ℱ possesses a continuous extension to a function f̅ : 𝒜′→ℝ. However related to some classical theorems, our result is direct and hence applicable in Calculus of Variations. Our construction is then used to represent limits of weakly convergent sequences {f(uν)} via methods related to DiPerna-Majda measures. In particular, as our main application, we generalise the Representation Theorem from the Calculus of Variations due to Kałamajska.