Changed the loading sequence

And also started to think about gpf.$HtmlHandler and gpf.$HtmlEvent