Vue Identify Network
Identify what kinda internet your users are using!
Install
CDN: UNPKG | jsDelivr (available as window.VueIdentifyNetwork
)
Usage
API
Slots
unknown
: The slot to show when we are unable to identify network type (navigator.connection.effectiveType
==="Unknown"
)slow
: The slot to show when internet is slow (navigator.connection.effectiveType
==="2g"
)fast
: The slot to show when internet is fast (navigator.connection.effectiveType
!=="2g"
)
Props
unknownClass
: Add your own classes to thediv
slowClass
: Add your own classes to thediv
fastClass
: Add your own classes to thediv
Events
network-type<type>
: Emitted after network speed is identified, eg: