You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
My rendering was very slow until I put the line
page.settings.loadImages = false;
near the top of phantom-server.js
Indeed this settings (http://phantomjs.org/api/webpage/property/settings.html ) disable image download, and my rendering time decreased very much ! So if you don't need image (we don't take page screenshot, we are generating html for google), and your javascript doesn't need image, think about it.
I am also looking for a pretty way to keep my top 5 pages (homepage and some key pages) always in memcached, that way i want to be ready for google and have a super good pagespeed for SEO. (Maybe Google bots knows that escaped_fragment are rendered on server, so google is nice for us and give us a free pass on this metric). Sadly I have like one thousand pages so I need to dirty tweak the memcache mechanism. If you have some implementations ideas ;)
Hello,
My rendering was very slow until I put the line
page.settings.loadImages = false;
near the top of phantom-server.js
Indeed this settings (http://phantomjs.org/api/webpage/property/settings.html ) disable image download, and my rendering time decreased very much ! So if you don't need image (we don't take page screenshot, we are generating html for google), and your javascript doesn't need image, think about it.
I am also looking for a pretty way to keep my top 5 pages (homepage and some key pages) always in memcached, that way i want to be ready for google and have a super good pagespeed for SEO. (Maybe Google bots knows that escaped_fragment are rendered on server, so google is nice for us and give us a free pass on this metric). Sadly I have like one thousand pages so I need to dirty tweak the memcache mechanism. If you have some implementations ideas ;)
https://developers.google.com/speed/pagespeed/insights/
and try http://www.YOURDOMAIN.com?_escaped_fragment_=
So far, I have 2,2 sec . People say going under 1sec is the top.
Thank you for this project
The text was updated successfully, but these errors were encountered: