Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Adding of JavaScript from extension not working properly on fresh wiki

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


mickewiki at gmail

Oct 5, 2009, 1:02 PM

Post #1 of 2 (575 views)
Permalink
Adding of JavaScript from extension not working properly on fresh wiki

I have written an extension for embedding Google Waves on a wiki page:
http://www.mediawiki.org/wiki/Extension:GoogleWave

In one of my test wikis this is working like a charm:

http://mickenordin.se/~micke/phase3/index.php/Huvudsida

on another it is not:

http://mickenordin.se/wiki/Wave

On the problem wiki it looks like the javascript isn't loaded properly and I
need to use &action=purge to get the javascript to load at all.

Same problem occurs in a vanilla install of 1.16alpha (r57355)

Why is this do you think? What can I do to get the javascript to get loaded on
each page view?

/Micke


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


rlane32 at gmail

Oct 5, 2009, 1:23 PM

Post #2 of 2 (540 views)
Permalink
Re: Adding of JavaScript from extension not working properly on fresh wiki [In reply to]

On Mon, Oct 5, 2009 at 3:02 PM, Micke Nordin <mickewiki [at] gmail> wrote:
> I have written an extension for embedding Google Waves on a wiki page:
> http://www.mediawiki.org/wiki/Extension:GoogleWave
>
> In one of my test wikis this is working like a charm:
>
> http://mickenordin.se/~micke/phase3/index.php/Huvudsida
>
> on another it is not:
>
> http://mickenordin.se/wiki/Wave
>
> On the problem wiki it looks like the javascript isn't loaded properly and I
> need to use &action=purge to get the javascript to load at all.
>
> Same problem occurs in a vanilla install of 1.16alpha (r57355)
>
> Why is this do you think? What can I do to get the javascript to get loaded on
> each page view?
>

The javascript you are outputting is dynamic content, and it is being
cached by the parser cache. You can disable the parser cache on pages
that use your extension [1], or you can find a way to do the dynamic
stuff after page load.

V/r,

Ryan Lane

[1] http://www.mediawiki.org/wiki/Extensions_FAQ#How_do_I_disable_caching_for_pages_using_my_extension.3F

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.