Skip to content

Commit f5e618d

Browse files
danezmathiasbynens
authored andcommitted
Remove timeout for loading jsapi
Closes jsperf#365.
1 parent 0d9b571 commit f5e618d

File tree

5 files changed

+1587
-1224
lines changed

5 files changed

+1587
-1224
lines changed

Diff for: gulpfile.js

-5
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ gulp.task('js', function () {
7171
.pipe(replace(`var _ = context && context._ || req('lodash') || root._;`, ''))
7272
.pipe(replace(`'platform': context.platform`, `'platform': platform`))
7373

74-
// Ugly hack to avoid “`ui` is not defined” (#212) most of the time. 😒😫
75-
// TODO: Figure out what’s happening and fix this properly.
76-
.pipe(replace(`loadScript('https://www.google.com/jsapi?autoload='`, `setTimeout(function() { loadScript('https://www.google.com/jsapi?autoload='`))
77-
.pipe(replace(`'}'), idoc);`, `'}'), idoc); }, 2000);`))
78-
7974
// Minify the result.
8075
// .pipe(uglify())
8176

0 commit comments

Comments
 (0)