簡體   English   中英

Google Apps Script HTML Service中的JQuery UI非常慢

[英]JQuery UI in Google Apps Script HTML Service very slow

我正在嘗試使用JQuery UI的Google Apps腳本HTML服務。

我創建了一個帶有日期字段的簡單測試用例,但datepicker小部件的響應度很低。 顯示日期選擇器至少需要3秒鍾。 導航到下個月也需要3秒。

我有什么辦法可以改善JQuery UI的性能?

這是HTML文件:

<html>
  <head>
    <link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/themes/smoothness/jquery-ui.css" rel="Stylesheet" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.8.23/jquery-ui.min.js"></script>
    <script>
      $(document).ready(function() {
        $('#date').datepicker();
      });
    </script>
  </head>

  <body>
    <input type="text" name="date" id="date">
  </body>
</html>

GS的電話:

function doGet() {
  return HtmlService.createTemplateFromFile('test').evaluate();
}

控制台日志顯示:

Node not editable; no action performed. es53-taming-frame.opt.js:419
ode not editable; no action performed. es53-taming-frame.opt.js:419
bad value `fixed` for CSS property position es53-taming-frame.opt.js:419
https://ssl.gstatic.com/caja/4969/es53-taming-frame.opt.js?debug=1

這是一個已知問題,我們正在努力加快速度。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM