dtch60248 2017-03-28 11:54
浏览 58

聚合物在移动和其他浏览器上以不连续的方式加载

I am building a web application using Polymer (Web Components) and it seems to work fine on Chrome, but when I try to load a page on mobile, it gets really choppy like it is loading one element at a time and the page looks bare-bones for a second or two before snapping into place.

I have vulcanized all of the elements that are needed but even the vulcanized file is almost 1 MB and takes chrome 382 ms to load.

What can I do to speed up loading?

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="theme-color" content="#0097a7">
    <link rel="icon" href="Logos/Tab%20Icon.png">
    <!-- POLYMER JAVASCRIPT -->
    <script src="Polymer1.0/components/bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
    <link rel="import" href="UptikCSS/vulcanized/imports.vulcanized.html">
    <link rel="import"  href="MaterialDesignElements/vulcanized/elements.vulcanized.html">


    <title>Expenses</title>
    <script async src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
    <script async src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
    <script async src="Javascript/TouchPunch/jquery-ui-touch-punch-master/jquery.ui.touch-punch.min.js"></script>
    <script async src="Javascript/Submit.js"></script>
    <script async src="Javascript/VETESpeed.js"></script>
    <script async src="Javascript/NECT2.js"></script>

That is the entire head section of my file. It is a .php file as opposed to .html but I highly doubt that will have an impact.

Would just love to know how I can get it to load faster.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
    • ¥15 关于smbclient 库的使用
    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启