ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

Prevent multi <style> generation #337

Open andreas-trad opened 10 years ago

andreas-trad commented 10 years ago

If the autogenerate_stylesheet option is set to true then the library is adding multiple times the same style on the head of the document (see the source of the http://gridster.net/demos/adding-widgets-dynamically.html demo in order to observe this). With this correction the gridster style element is only inserted once on the head

dsmorse commented 9 years ago

Looks great I merged it into my fork dsmorse/gridster.js

dsmorse commented 9 years ago

Just as an FYI, this causes a problem is you use multiple namespaces... I'm working a fix for my fork.