Skip to content

retina.js runs automatically despite using import or require #280

@fahmilatib

Description

@fahmilatib

To use retina.js the new-school way, you'll want to require it (or import it if you're using ES6) into your Gulp/Webpack/Grunt/CommonJS/etc application. In this case, the script won't run automatically. Instead, it'll let you determine when you'd like it to run.

When I do import 'retinajs' or require('retinajs') the window.retinajs method runs automatically. Isn't it supposed to only run when I call it manually?

This contradicts what is written in the docs. Am I missing something here guys?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions