我试图得到最小的例子
using Facebook\FacebookSession;
FacebookSession::setDefaultApplication('YOUR_APP_ID','YOUR_APP_SECRET');
// Use one of the helper classes to get a FacebookSession object.
// FacebookRedirectLoginHelper
// FacebookCanvasLoginHelper
// FacebookJavaScriptLoginHelper
// or create a FacebookSession with a valid access token:
$session = new FacebookSession('access-token-here');
// Get the GraphUser object for the current user:
try {
$me = (new FacebookRequest(
$session, 'GET', '/me'
))->execute()->getGraphObject(GraphUser::className());
echo $me->getName();
} catch (FacebookRequestException $e) {
// The Graph API returned an error
} catch (\Exception $e) {
// Some other error occurred
} …Run Code Online (Sandbox Code Playgroud) 我不明白https://www.openstream.ch移动版上的哪个元素被 Lighthouse认为是最大的内容绘制。
当我使用 PageSpeed Insights(目前在 Lighthouse v6.0.0 上运行)测试当前版本的网站时,它有 90 点的桌面和1.8 秒来渲染最大的内容绘制,这似乎是视图底部的 4 个图像港口:
当我切换到移动结果时,它有 61 个点和 3.7s 来渲染Largest Contentful Paint,尽管视口中甚至没有图像:
在https://web.dev/lcp/ 上,它说目前考虑用于最大内容绘制的元素类型是:
<img> 元素<image> 元素内的元素<video> 元素(使用海报图片)当我在适用于 macOS 的最新版 Chrome(Lighthouse 5.7.1)中进行测试时,最大的内容绘制在大约 0.5 秒后呈现:
这是 Lighthouse 6.0.0 中的错误还是可能有其他原因?
我正在尝试将文件夹从 Google 计算引擎实例同步到云存储,但它只是在没有任何指针的情况下退出。它说开始同步,然后返回到提示。
gsutil -m rsync -r public/ gs://mybucket/public
Building synchronization state...
Starting synchronization
Run Code Online (Sandbox Code Playgroud)
我的 gsutil 版本
gsutil version -l
gsutil version: 4.6
checksum: 397d8391fddbf1c48cc31f9c2911be68 (!= 70858e3360112a908c76273e6c947098)
boto version: 2.30.0
python version: 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2]
OS: Linux 3.16.0-62-generic
multiprocessing available: True
using cloud sdk: True
config path: /etc/boto.cfg
gsutil path: /usr/lib/google-cloud-sdk/platform/gsutil/gsutil
compiled crcmod: False
installed via package manager: False
editable install: False
Run Code Online (Sandbox Code Playgroud)
我还尝试分别更新 gsutil 和 gcloud 组件,但这也不起作用
gcloud components update
You cannot perform …Run Code Online (Sandbox Code Playgroud)