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

append_javascripts and append_stylesheets methods insert duplicates #92

Open
maxd opened this issue Mar 3, 2016 · 0 comments
Open

append_javascripts and append_stylesheets methods insert duplicates #92

maxd opened this issue Mar 3, 2016 · 0 comments

Comments

@maxd
Copy link

maxd commented Mar 3, 2016

Steps to reproduce:

  1. Add JS or CSS file (i.e. use kit.javascripts << '...')
  2. Call to_file or to_image several times.

Added JS or CSS file will be added several times to HTML head (because to_img call append_stylesheets and append_javascripts methods every time).

So, it can cause JS errors i.e. here JS which appear then Highchart has been inserted several times:

screen shot 2016-03-03 at 3 12 22 pm

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

No branches or pull requests

1 participant