move resource loading to fetch which is fired by freeze()