-
Notifications
You must be signed in to change notification settings - Fork 5
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
Google chart not loaded when connecting to /home/index from link #1
Comments
This is a javascript problem, and causes this error: Turbolinks is a method to make pages load faster by making ajax requests and replacing the body of the page. This way the browser doesn't have to reload the and the tag.Because of Turbolinks we are effectively always on the same page (home) and the others are loaded via js. This means that we start in home, the google charts js gets executed the first time, and remains in ram, so that when we visit the page again, the body is re-executed, but it finds the google charts library already loaded and complains. The solutions are:
|
I get that! On one hand: yes, lets disable turbolinks! But I do not want to make the webapp too slow. One think is having the app tested locally, but once deployed I would not be surprised to see event 30-50+ people there at the same time (expecially on day-0). Not big numbers, but who knows... Can't we have the js code in the
|
Solved with commit: |
How to reproduce:
Output: no google chart
I believe the problem is that we are just making the @posts and @post_jobs objects on home#index (controller) and not invoking any js of that page.
The text was updated successfully, but these errors were encountered: