GithubHelp home page GithubHelp logo

website's People

Contributors

chrismhale avatar colin-marshall avatar dependabot[bot] avatar designerdean avatar ethanhackett avatar gagern avatar gakimball avatar joshmedeski avatar kortenkamp avatar kranich avatar levimcg avatar mo271 avatar montaga avatar ondrejvasicek avatar ppowalowski avatar rafibomb avatar richter-gebert avatar rspt avatar strobelm avatar tictok avatar zurbchris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

website's Issues

Avoid !important rules

Commit 33c1a76 added some !important rules to the CSS, but I don't think they should be neccessary and I think that having them will greatly reduce maintainability of the styling. Can we just drop them, or is there a particular reason we need them?

Possible size race

The current website uses app.css to choose dimensions for some of the examples. At least in theory this leads to a race condition: if the CSS isn't loaded and applied by the time a CindyJS widget launches, it will have the wrong idea about its dimensions. And until we implement a resize sensor, we may fail to recover from this. So far I haven't managed to actually produce this scenario since Cindy.js takes longer to load than app.css. But with a flaky mobile connection I think this might well happen to some of our potential users.

One possible solution would be inlining the relevant part of the stylesheet into the HTML template, so that it is guaranteed to be available by the time the widgets start. Or we could inline the dimensions in the style attribute for each widget. Another possible solution would be implementing that resize sensor as suggested.

If you know of a way to ensure that a CSS got applied, we could defer widget launches while waiting for that event, but last I looked I couldn't find a suitable event for this. If I remember correctly, Firefox fires onload events for its <link> tags the moment they have loaded, but applies them asynchroneously after that event got processed.

Performance of examples on website

I like the new website!

However, on my phone, the bouncing ball example is extremely slow. This can be a bad first impression, especially when one does not even see the other examples yet that are running in the background and causing the bad performance.

I tried the website in Firefox for Android, Chromium for Android and the stock Android browser, all with similarly bad performance. Each example on its own runs smoothly on the device.

As an improvement, I suggest using the visibilitychange event from Page Visibility API to only initialize and run visible examples.

What do you think?

Automatically scaling cs-applets for mobile

When accessing the homepage on mobile devices, some examples in the gallery are to big for the screen. This makes scrolling impossible.

I am not sure wheather this can regulated through plain CSS, because we need a way to scale the canvases with keeping the aspect ratio. I guess it needs some work in Javascript...

Prepare for MathJax CDN shutdown

According to https://www.mathjax.org/cdn-shutting-down/, cdn.mathjax.org is shutting down by the end of April and we should be migrating away from that. A suitable cdnjs.cloudflare.com configuration might be our best bet. Right now there are three gallery pages using that host, one conference presentation and two examples shipped with the source tree.

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.