Coder Social home page Coder Social logo

Comments (11)

DyfanJones avatar DyfanJones commented on August 16, 2024 1

Here is the current repo for the website build

https://github.com/paws-r/paws-r.github.io

from paws.

DyfanJones avatar DyfanJones commented on August 16, 2024

Hi @b-rhodes sorry about that. You are correct it is taking a long time to load up the documentation.

We are currently using AWS Cloudfront to host a static website from AWS S3. Sadly the site is too big for github pages and keeps failing to build when I attempt to host it there.

I am not a front end developer so I am not 100% sure how to improve the performance of the site. If you or anyone knows how to host large static websites please let me know in this thread.

from paws.

b-rhodes avatar b-rhodes commented on August 16, 2024

If you try loading it from an s3 bucket (without CloudFront) does it load faster?
https://docs.aws.amazon.com/AmazonS3/latest/userguide/HostingWebsiteOnS3Setup.html

from paws.

DyfanJones avatar DyfanJones commented on August 16, 2024

For the cran we need to have HTTPS. Directly from S3 only support HTTP. However it is worth checking out

from paws.

b-rhodes avatar b-rhodes commented on August 16, 2024

Hmm, that's a good point.
If it's hosted on github pages but using Cloudfront to distribute it, could you try to host on s3 instead and keep using cloudfront for the distribution?
https://repost.aws/knowledge-center/cloudfront-https-requests-s3

from paws.

DyfanJones avatar DyfanJones commented on August 16, 2024

Sorry if I didn't explain it correctly. It currently is on S3 and uses Cloudfront to distribute.

I couldn't host it on GitHub due to its size

from paws.

DyfanJones avatar DyfanJones commented on August 16, 2024

@b-rhodes please try the site now. I have added navigation.prune to the mkdocs yml config. This has reduced the --html files from roughly 3.5Mb to 2.8Mb. Not a huge change however a step in the right direction.

UPDATE:
The latest version of mkdocs has given significant improvement with the file reduction. So from ~3.5Mb to ~200Kb.

from paws.

DyfanJones avatar DyfanJones commented on August 16, 2024

From my testing the site is responding a lot better however I would like feed back from users. :)

from paws.

DyfanJones avatar DyfanJones commented on August 16, 2024

Due to the improvements in mkdocs, we can host the site on github pages again (https://dyfanjones.github.io/paws-test-site/). I guess we could add this as a back up if the main site goes down.

from paws.

b-rhodes avatar b-rhodes commented on August 16, 2024

it's looking way better! Loads super fast by comparison now.

from paws.

DyfanJones avatar DyfanJones commented on August 16, 2024

Perfect I will close this now. If this issue comes up again please re-open

from paws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.