I have a working Timeline configuration with Simile Timeline libraries installed locally. Using a custom timeline theme in sites/all/modules/timeline/themes/myTheme. After clearing the cache and enabling optimized javascript files, a javascript error occurs (Firefox, see error console). No timeline is displayed.

Note: the DarkTheme and a custom theme cause the same problem (so only Classic Theme seems to work with optimized javascript).

Steps to reproduce:
1.)
Performance: clear cached data
Performance: enable optimized javascript files (Save)

2.)
a) the problem
Timeline View: Style Timeline -> settings -> Appearance and themes: set "DarkTheme" Theme (Update, Save)
Result: no Timeline in browser, javascript error

b) it works with:
Timeline View: Style Timeline -> settings -> Appearance and themes: set "ClassicTheme" Theme (Update, Save)
Result: the Timeline works.

Comments

wayne57’s picture

I confirm your issue, and I get the same behaviour.

blogbold’s picture

Title: Timeline custom style theme and optimized javascript: timeline fails (js-error: "Timeline is not defined") » Timeline style Darktheme (or custom style) and optimized javascript: timeline fails (js-error: "Timeline is not defined")

Improved issue title to clarify it's not the fault of a custom timeline style but any timeline style other than ClassicTheme.

loophole080’s picture

confirmed same issue - interesting the dark theme does render intermittently in safari, tho total fail in firefox - classic theme is fine in both

devkinetic’s picture

Confirmed for me as well. Anyone have a workaround, besides turning off JavaScript aggregation?

devkinetic’s picture

i ended up switching to the default theme and overriding the timeline js/ css within my drupal theme. This allows me to use javascript aggregation.

xamanu’s picture

polskikrol’s picture

subscribe.... same issue on 6.x-3