Are there any JS FW included in YII 2.0?
Cause now a days everyone talk a lot about SEO, and YII has the bad costume to put JS in middle of the HTML...
why dont use AngularJS?
Thanks!
=)
Page 1 of 1
Embedded JS (AngularJS) Framework
#2
Posted 22 August 2012 - 06:03 AM
There's a lot of happening in the JS MVC world.. backbone, spine, ember, etc. I don't think these things should be in the core.
#3
Posted 23 August 2012 - 10:12 AM
I would like the embedded JS framework to be pluggable or interchangeable with your own JS files.
For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.
For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.
#4
Posted 23 August 2012 - 04:26 PM
Roman Solomatin, on 23 August 2012 - 10:12 AM, said:
I would like the embedded JS framework to be pluggable or interchangeable with your own JS files.
For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.
For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.
What's wrong with using the clientScript object to embed your own versions of JS files?
Regarding versions, each new Yii release always includes the latest stable jQuery and jQuery UI versions, the developers always take care of updating them.
... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain...
#5
Posted 23 August 2012 - 04:51 PM
Roman Solomatin, on 23 August 2012 - 10:12 AM, said:
I would like the embedded JS framework to be pluggable or interchangeable with your own JS files.
For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.
For example, if I wish to use my own jQuery libraries (version upgrades, bugfixes, my own modifications) instead of the framework's core JS files.
It's already feasible. Just put 'scriptMap'=>false for any script / css file you don't like, and include the files you want. You can even handle them in a parallel assets folder.
#6
Posted 24 August 2012 - 10:16 AM
there's already been talk about moving the core JS into a package so it can be updated independently of yii.
See my development site @ www.CodeTheInter.net (BETA)


Quote
If you make it idiot proof, they'll build a better idiot
Share this topic:
Page 1 of 1

Help
This topic is locked












