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