Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8551067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:06:41+00:00 2026-06-11T14:06:41+00:00

My Yii application has a particular section called ‘Edit Profile’ . It’s a pretty

  • 0

My Yii application has a particular section called ‘Edit Profile’ . It’s a pretty data heavy section in the way a lot of data is pulled from db for this one .

However the problem is that I have tab pagination in this section . Because only this section uses tabs on the website I did not include the related CSS/Javascript files in the main layout header .These have been referenced in the view file itself . Because of this the tabs takes time to show up and the tab titles appear as a list first (for a second or two) and then get distributed into tabs with the correct UI . This is of course unacceptable behaviour . Is there any way to selectively include related js/css files into the header tag for this particular view or should I include it in main layhout file even though it won’t be used in a lot of other places on the website thus possibly slowing down other pages .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:06:42+00:00Added an answer on June 11, 2026 at 2:06 pm

    Just specify the position for the file.

    In your view where you are including the js or css :

    // for js
    Yii::app()->clientScript->registerScriptFile('url_of_file',CClientScript::POS_HEAD);
    
    // for css
    Yii::app()->clientScript->registerCssFile('url_of_file');
    

    Recommended documentation: registerScriptFile() , and registerCssFile()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm running Yii, which has an application that manages some scientific data. I'm
I am doing an application in Yii Framework.I have progressed to some way like
My application is written to make use of Yii clean urls. The urlManager has
Our Yii Framework application has the following defined as part of the UserProfileImages model:
I'm using Yii to construct a web application. One of my input forms has
Yii 1.1 application development Cookbook explain a method for using data from related Active
In my Yii application I have a pretty simple model setup. I've used the
I have an application that is built with Yii framework. It has lots of
In Yii I am writing a small application called Invoice Application. In that I
In my Yii application, I have a model that represents siteconfig table and have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.