2012-09-13 68 views
6

我使用JQuery UI试用Google Apps脚本HTML服务。Google Apps脚本中的JQuery UI 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 

回答

2

这是一个已知问题,我们正在努力加快速度。