Skip to content

Conversation

@thet
Copy link
Member

@thet thet commented Dec 19, 2022

Obsolete by: #1115
PR for documentation reasons.

If a merge would really be necessary, better do it in the makefile build process than inventing a new plugin.

thet added 2 commits December 19, 2022 11:58
Since Patternslib 9.0.0-alpha.0 where we introduced webpack module
federation for our bundles, Modernizr is loaded asynchronously and
applying it's CSS classes a tick too late. For example, the change from
the `no-js` to the `js` class was done while the tiles have already been
drawn and visible on the screen, resulting in screen flickering. There
are a number of projects which depend on Modernizr being applied early.

This change now fixes the problem by separating the Modernizr build from
the Patternslib bundle.

If you depend on Modernzir, please include the new `modernizr.min.js` bundle in
a script tag, preferably before the Patternslib bundle `bundle.min.js`.
@thet thet closed this Dec 19, 2022
@thet thet deleted the merge-modernizr branch December 19, 2022 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants