Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web site works slowly #16

Closed
hrrmsn opened this issue Jul 22, 2017 · 9 comments
Closed

Web site works slowly #16

hrrmsn opened this issue Jul 22, 2017 · 9 comments
Assignees

Comments

@hrrmsn
Copy link
Owner

hrrmsn commented Jul 22, 2017

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 22, 2017

I applied two enhancements:
(a) I minified css and js files (I used http://www.minifier.org/ for this purpose)
(b) I specified static files in the pythonanywhere configuration (web app setup tab)
(c) I started to serve scaling images

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 22, 2017

screenshot

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 22, 2017

I increased the speed of website load. Now it's about 0.6s. Maybe it's good idea to put favicon.ico to my site.
screenshot

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 23, 2017

Also I can use gzip compression to accelerate the website. Good reading are below.
https://www.pythonanywhere.com/forums/topic/376/
https://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/

I think that PAW (pythonanywhere) already uses gzip compression.
screenshot2

Yes. I checked the previous idea. Proof is below.
screenshot

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 24, 2017

Ideas for further enhancements.
screenshot

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 25, 2017

greeting.html
index.html
(already done)

{ -> {{
} -> }}

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 26, 2017

I did all previous suggestions to improve site speed. (Inline small css, inline small javascript, specify image dimensions, minify html).

Now I have the following result.
( :
screenshot

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 26, 2017

And the current time of load my web site.
screenshot

@hrrmsn
Copy link
Owner Author

hrrmsn commented Jul 26, 2017

DONE.

@hrrmsn hrrmsn closed this as completed Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant