Skip to content

Add 3rd Party Library Section #128

@jparker165

Description

@jparker165

If my <script scr="3rd_party.js"> is being loaded into someone's site, what's the etiquette?

Do I only get a single global variable like '__myLibrary = {this.code=...}' (double underscore prefix)? Should this still be wrapped in an anonymous function?

If I'm injecting html/style/script tags, do they always get appended to the end of the head or body? Is prefixing every id/class with "myLibrary_varName" enough to avoid collisions?

When is it ok to use iframes, document.write, etc.?

When injecting an overlay do I just set the z-index to "2147483647"? Once my content needs to go away, can I set it to "display:none;" or do I need to remove it from the DOM?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions