phoxy / clap
为搜索引擎制作HTML快照
v0.1.2
2016-05-28 11:35 UTC
Requires
- enelar/phpantomjs: ~0.0
This package is auto-updated.
Last update: 2024-09-07 21:26:10 UTC
README
=== 制作phoxy快照
=== 安装
添加到你的composer.json文件中
"config":
{
"bin-dir": "bin"
},
"scripts":
{
"post-package-install":
[
"PhantomInstaller\\Installer::installPhantomJS"
]
}
添加到你的warmup.js文件中(或创建你的懒加载配置)
OnFirstPageRendered: function()
{
if (typeof window.callPhantom == 'function')
window.callPhantom('clap');
}