Currently I use a RimgBreakpoint variable that needs to be defined before embedding the RIMG-library. I did because of 2 reasons:
I want to hide all the inner functionality of the RIMG library to ensure that developers are not able to alter internal variables and break the execution of the library. That is why I used the !function(){} setup to hide unnecessary functions/variables
flexibility to embed code in the <head> or <body> tags without having issues that my library will not work. DOMContentLoaded will help with this.
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!
Currently I use a
RimgBreakpoint
variable that needs to be defined before embedding the RIMG-library. I did because of 2 reasons:!function(){}
setup to hide unnecessary functions/variables<head>
or<body>
tags without having issues that my library will not work.DOMContentLoaded
will help with this.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!