The applet for this topic is related to the power loss of an resistor P(t)=I(t)V(t)=I^2(t) R The voltage and current are in phase.

The URL you referer to is another issue:
AC Power due to phase different between current and voltage (RC or RL circuit).
It is a different story!