Migrate from v2.0.x to v2.0.13
With the change to version 2.0.13
there are the following changes:
BoosterLayer
Hardware performance check removed
The hardware check for showing the BoosterLayer
has been removed.
The option device
from module and the use of the message (#nuxt-booster-message-outdated-device
) in the BoosterLayer, are no longer valid and must be removed.
Alternatively, it now waits for a free idle
slot when initializing the JS,
- if a free slot is available, the JS is initialized
- if no free slot is available, the message
#nuxt-booster-message-weak-hardware
is showed in the BoosterLayer.
The old message #nuxt-booster-message-outdated-device
must be replaced by the new #nuxt-booster-message-weak-hardware
. (See Messages)
Messages
outdated-device
toweak-hardware
html<li id="nuxt-booster-message-outdated-device"> outdated device </li>
replaced with
html<li id="nuxt-booster-message-weak-hardware"> weak hardware </li>
slow-connection
toreduced-bandwidth
html<li id="nuxt-booster-message-slow-connection"> slow-connection </li>
replaced with
html<li id="nuxt-booster-message-reduced-bandwidth"> reduced-bandwidth </li>
Button Interactions
Button #nuxt-booster-button-init-font
has been replaced by #nuxt-booster-button-init-reduced-view
.
#nuxt-booster-button-init-reduced-view
does the following when clicked:
- Sets the CSS class
nuxt-booster-reduced-view
on thehtml
tag. - Activates all fonts by setting the class
font-active
on all elements with the attributedata-font
. - Converts all not activated pictures (
:hydrate="false"
) fromnoscript
topicture
.
INFO
The CSS class nuxt-booster-reduced-view
is removed again at app initialization.