How to specify to load javascript on the index page only?

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
iamnext
New member
New member
Posts: 9
Joined: 15 Jul 2010, 09:07
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

How to specify to load javascript on the index page only?

Postby iamnext » 04 Aug 2010, 13:18


iamnext
New member
New member
Posts: 9
Joined: 15 Jul 2010, 09:07
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to specify to load javascript on the index page only

Postby iamnext » 04 Aug 2010, 13:22

and also how can I make it so that jquery_core_mini.js would be sent compressed to reduce the load time?

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to specify to load javascript on the index page only

Postby RMcGirr83 » 04 Aug 2010, 13:25


iamnext
New member
New member
Posts: 9
Joined: 15 Jul 2010, 09:07
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to specify to load javascript on the index page only

Postby iamnext » 04 Aug 2010, 13:59

Thank you very much, this work excellently. Now that my homepage would load faster :D I appreciate your quick reply.

iamnext
New member
New member
Posts: 9
Joined: 15 Jul 2010, 09:07
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to specify to load javascript on the index page only

Postby iamnext » 05 Aug 2010, 00:57

Hi, I realize that I would need to have the java script loaded on index page and in the archive mod as well. I think I need to code it as an OR how should I do it to include the archive mode?

Thank you.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How to specify to load javascript on the index page only

Postby RMcGirr83 » 05 Aug 2010, 02:13



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: No registered users and 46 guests