Fix . By assumption there is a neighbourhood of on which with uniform convergence. Each restriction is continuous, and a uniform limit of continuous functions is continuous. Thus is continuous, in particular at . Since was arbitrary, is continuous on .
Now let be compact and let . For each , choose a neighbourhood on which convergence is uniform. The sets cover , so compactness gives a finite subcover
For each , choose such that
Taking , every belongs to one of these finitely many neighbourhoods, and therefore
Thus uniformly on every compact subset. This proves the local uniform convergence on compact subsets principle.
For a compact exhaustion and positive summable weights , use the bounded metric transform on each compact supremum norm. The resulting series defines a metric on continuous functions and realizes local uniform convergence on compact subsets. The triangle inequality is termwise. For convergence, control finitely many compact seminorms and then the uniformly bounded weight tail; conversely a vanishing metric controls each fixed seminorm.