• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / javascript-sdk / 2915 / 9
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2021 10:37PM UTC
Files 72
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Sep 2021 07:50PM UTC coverage: 96.993% (-0.008%) from 97.001%
SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH

cron

travis-ci-com

web-flow
Removed OptimizelyConfig creation from SDK initialization to reduce intialization time (#704)

## Summary
`OptimizelyConfig` object is created during initialization of `Optimizely` Instance. This almost doubles the initialization time for the SDK. This PR moves the creation of `OptimizelyConfig` object to `getOptimizelyConfig`. The `OptimizelyConfig` object will be created and cached when the `getOptimizelyConfig` API is called for the first time after every data file update.

## Test plan
- Manually tested thoroughly
- Updated unit tests
- All FSC test pass

976 of 1099 branches covered (88.81%)

Branch coverage included in aggregate %.

8894 of 9077 relevant lines covered (97.98%)

69.64 hits per line

Source Files on job 2915.9 (SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2087
  • Travis Job 2915.9
  • f33af134 on github
  • Prev Job for SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH on master (#2910.2)
  • Next Job for SDK=javascript SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH on master (#2920.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc