dtcyv3985 2013-12-02 06:56
浏览 12

显示page1直到page2 dom完全创建

I have two pages page1, page2.

page2 has large amount of data so it is take too long time for loading. mow i want to display page 1 until the page 2 is completely loaded. is it possible? if yes then please tell me how?

  • 写回答

2条回答 默认 最新

  • dongyue6199 2013-12-02 07:09
    关注

    Don't load huge amount of data at a time

    1.try to use jquery ajax

    2.Bind images properly You can not show two different

    You can use a display none on the body and then bind an event listener for pageinit on your first page.

    Example:

    HTML:

    <body style="display:none">
    <div id="#start" data-role="page"></div>
    </body>
    

    JS:

    $("#start").one("pageinit",function(){
        $("body").show();
    });
    

    [updated]

    See you can not archive this by two pages remember page is only one but logic is different you have initially only one page so don't load a content until first content means page 1 is loaded and then check that your content is loaded then load another data

    评论

报告相同问题?

悬赏问题

  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算