protected function preload($post_type = 'post')
    {
        $args = array(
            'fields'           => 'ids',
            'orderby'          => 'post_date',
            'order'            => 'DESC',
            'post_status'      => 'publish',
            'post_type'        => $post_type,
            'showposts'        => -1,
            'suppress_filters' => true,
        );
        $query = new WP_Query($args);

        if ($query->have_posts()) {
            $posts = apply_filters('staticwp_preload_' . $post_type . '_posts', $query->posts);
            foreach ($posts as $post_id) {
                $this->updateHtml($post_id);
            }
        }
    }