Welcome Guest, Not a member yet? Register   Sign In
Loading core in JavaScript files
#5

[eluser]mariogl[/eluser]
[quote author="cahva" date="1289943260"]One warning when using js(or whatever you call from controller). If you use flashdata from session library, those requests will erase flashdata(which are meant to live to the next request) also. You have to use keep_flashdata from those controllers to keep them alive for the "normal" requests.[/quote]

Ok.

[quote author="cahva" date="1289943260"]Anyway, try to avoid using PHP to output JS (or CSS or whatever) as that will put a little more stress to your server consuming more memory than normal request w/o PHP in the middle. If its not "dynamic" js, its just better to save it to reqular js file and serve it as such.[/quote]

But I have some js files that use "dynamism" (e.g. texts filtered by my translation class, pieces of code that execute conditionally). I suppose I have no chance, have I?


Messages In This Thread
Loading core in JavaScript files - by El Forum - 11-13-2010, 06:50 AM
Loading core in JavaScript files - by El Forum - 11-13-2010, 08:02 AM
Loading core in JavaScript files - by El Forum - 11-16-2010, 07:58 AM
Loading core in JavaScript files - by El Forum - 11-16-2010, 09:34 AM
Loading core in JavaScript files - by El Forum - 11-16-2010, 10:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB