Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

page.settings.loadImages = false; decrease rendering time. #6

Open
laurentdebricon opened this issue Oct 29, 2014 · 0 comments
Open

Comments

@laurentdebricon
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant