How to load jquery cookie library for anonymous user It seems  with login user jQuery Cookie added and worked correctly but when I visit my website with not login user(anonymous) then  I faced with TypeError: $.cookie is not a function. Why This happened and how can I attach jQuery cookie libraries for not logged in users by default?

Notes: 
My theme is based on Drupal Bootstrap theme
For available Jquery and Jquery cookie for anonymous user, it should add it on  theme libraries dependencies , as example if your theme name is themename  on themename.libraries.yml add 

  dependencies:
    - core/jquery.cookie