joeyvandijk / rimg

[DEPRECATED] A responsive image solution for browsers that support mediaqueries. Pure javascript and no server-side code.
http://joeyvandijk.github.io/rimg
MIT License
294 stars 25 forks source link

default variables - before or after embedding / initialization? #2

Closed joeyvandijk closed 10 years ago

joeyvandijk commented 10 years ago

Currently I use a RimgBreakpoint variable that needs to be defined before embedding the RIMG-library. I did because of 2 reasons:

I did not find other solutions to easily add variables into my library and this is why I ask to add a RimgBreakpoint variable before embedding the RIMG library. If you have any other suggestions, please let me know!

joeyvandijk commented 10 years ago

I have extended this setup as an object, because lazy loading & introspection can be disabled by default. More information "why" at the wiki.