Google Apps Script Webapp 异步加载 [英] Google Apps Script Webapp async loading

查看:36
本文介绍了Google Apps Script Webapp 异步加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Google Apps 脚本编写一个网络应用程序.

I am writing a webapp using Google Apps Script.

为了减少加载时间,我让 doGet(e) 加载一个带有一些 javascript 的小文件,以异步加载其他 JS 和 CSS.

To reduce loading times I let doGet(e) load a small file with some javascript to asynchronously load other JS and CSS.

加载外部资源当然很好:

Loading external resources works fine of course:

<head>
  <!-- loading external resources works fine of course -->
  <script src="https://cdnjs.cloudflare.c[...]/jquery.min.js"></script>
  <link rel="stylesheet" href="https://cdnjs.clou[...].1/jquery-ui.min.css">
</head>

但据我所知,这无法使用我的应用程序脚本项目中的代码完成,因为我无法提供指向该文件的直接链接.这就是为什么我添加一点

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆