Skip to content

Deprecate jQuery #392

@Wolfr

Description

@Wolfr

All JS in Bedrock's core should be written as vanilla JS, not using jQuery. This was mentioned before but this is the “official” issue to track progress.

import $ from 'jquery';

import './prototype-nav';
import './styleguide-code-samples';
import './styleguide-typography';
import './styleguide-search';
import rememberScroll from './styleguide-remember-scroll';

window.$ = $;

rememberScroll('#__prototype-nav');
rememberScroll('.br-styleguide-content');
rememberScroll('.br-styleguide-navigation-holder');
  • './prototype-nav'; needs to be looked at, this is the hardest one
  • Code samples is well under way (in prism branch)
  • './styleguide-typography'; is done
  • './styleguide-search'; needs to be looked at, should be fairly simple Rewrite styleguide-search to vanilla JS #405
  • rememberScroll

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions