Skip to content

Combine multiple injects #10

Open
Open
@Nemo64

Description

@Nemo64

Just as an idea, if multiple packages inject stuff into the app there are multiple script tags. Alone my translator package injects 2 things and because of that there are 2 script tags.
This also pollutes the global id namespace.

<script id='translator-namespaces' type='application/ejson'>{"both/l10n/public":{"de_DE":1,"en_US":1}}</script>
<script id='translator-language' type='application/ejson'>{"$type":"Translator.LanguageArray","$value":"de_DE de en_US en"}</script>

I just thought if it would be possible to combine all object injects into one with an id that is long enough to not interfere with other id's.

<script id='inject-initial' type='application/ejson'>{
"translator-namespaces":{"both/l10n/public":{"de_DE":1,"en_US":1}},
"translator-language":{"$type":"Translator.LanguageArray","$value":"de_DE de en_US en"}}
</script>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions