forked from adamlaska/circleci-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
27 lines (22 loc) · 854 Bytes
/
app.js
File metadata and controls
27 lines (22 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
WARNING: Consider import & execution order carefully in the context of the
browser & the dom when modifying file
*/
import * as Cookie from 'js-cookie';
import 'highlightjs-badge';
import 'highlightjs-line-numbers.js';
import services from './services';
import '../styles/main.scss';
// adding "Clients" to the window object so they can be accessed by other js inside Jekyll
window.Cookie = Cookie;
window.AnalyticsClient = services.AnalyticsClient; // because it only has static methods, AnalyticsClient is not instantiated
window.OptimizelyClient = new services.OptimizelyClient();
import './site';
services.lang.init();
services.rum.init();
$(() => {
services.instantsearch.init();
services.highlightjsBadge.init();
services.progressbar.init();
import(/* webpackPrefetch: true */ './experiments'); // imports all experiments
});