append_javascripts and append_stylesheets methods insert duplicates
Opened this issue · 0 comments
maxd commented
Steps to reproduce:
- Add JS or CSS file (i.e. use
kit.javascripts << '...'
) - Call
to_file
orto_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: