Skip to content

Commit ee4714f

Browse files
committed
Don't syntax highlight things already on the page
1 parent a49df50 commit ee4714f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/elements/pw-shell.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ class PwShell extends PolymerElement {
247247
// probably not looking at the bottom of the page on first paint. Also
248248
// FREAM (First-paint Rules Everything Around Me)
249249
afterNextRender(this, function() {
250+
// iron-doc-viewer in lazy-elements will load Prism - this ensures it won't
251+
// syntax highlight things already on the page.
252+
window.Prism = { manual: true };
253+
250254
// Ignore jshint for dynamic import().
251255
import('./lazy-elements.js'); // jshint ignore:line
252256
});

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ gulp.task('js', 'Minify JS to dist/', ['jshint'], function() {
263263
'\n'
264264
];
265265
return gulp.src(['app/js/**/*.js'])
266-
.pipe(gulpUglifyEs()) // Minify js output
267266
.pipe($.header(helperCodeSnippets.join('')))
267+
.pipe(gulpUglifyEs()) // Minify js output
268268
.pipe(gulp.dest('dist/js'));
269269
});
270270

0 commit comments

Comments
 (0)