Stockholders’ Equity - Summary of Stock-based Compensation in Accompanying Consolidated Statements (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2018 |
Jul. 01, 2017 |
Jun. 30, 2018 |
Jul. 01, 2017 |
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Stock-based compensation | $ 4,988 | $ 1,948 | $ 8,700 | $ 3,551 |
| Cost of revenue | ||||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Stock-based compensation | 68 | 105 | 132 | 197 |
| Selling and marketing | ||||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Stock-based compensation | 722 | 295 | 1,196 | 541 |
| Research and development | ||||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Stock-based compensation | 1,220 | 370 | 2,029 | 651 |
| General and administrative | ||||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Stock-based compensation | $ 2,978 | $ 1,178 | $ 5,343 | $ 2,162 |