- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Improve settings loading strategy #96741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            bors
  merged 1 commit into
  rust-lang:master
from
GuillaumeGomez:improve-settings-loading-strategy
  
      
      
   
  May 6, 2022 
      
    
                
     Merged
            
            Improve settings loading strategy #96741
                    bors
  merged 1 commit into
  rust-lang:master
from
GuillaumeGomez:improve-settings-loading-strategy
  
      
      
   
  May 6, 2022 
              
            Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    …ime to prevent the style to be applied afterwards on slow connections
| Some changes occurred in HTML/CSS/JS. | 
| @bors r+ rollup To be clear, this doesn't prevent the settings page from being rendered before its CSS is loaded, but it gives the CSS a fighting chance of getting there on time. | 
| 📌 Commit 87b6326 has been approved by  | 
    
  compiler-errors 
      added a commit
        to compiler-errors/rust
      that referenced
      this pull request
    
      May 5, 2022 
    
    
      
  
    
      
    
  
…ding-strategy, r=jsha Improve settings loading strategy I learned about this thanks to `@jsha` who suggested this approach: It improves the settings loading strategy by loading CSS and JS at the same time to prevent the style to be applied afterwards on slow connections. r? `@jsha`
    
  compiler-errors 
      added a commit
        to compiler-errors/rust
      that referenced
      this pull request
    
      May 6, 2022 
    
    
      
  
    
      
    
  
…ding-strategy, r=jsha Improve settings loading strategy I learned about this thanks to ``@jsha`` who suggested this approach: It improves the settings loading strategy by loading CSS and JS at the same time to prevent the style to be applied afterwards on slow connections. r? ``@jsha``
    
  bors 
      added a commit
        to rust-lang-ci/rust
      that referenced
      this pull request
    
      May 6, 2022 
    
    
      
  
    
      
    
  
…piler-errors Rollup of 7 pull requests Successful merges: - rust-lang#96174 (mark ptr-int-transmute test as no_run) - rust-lang#96639 (Fix typo in `offset_from` documentation) - rust-lang#96704 (Add rotation animation on settings button when loading) - rust-lang#96730 (Add a regression test for rust-lang#64173 and rust-lang#66152) - rust-lang#96741 (Improve settings loading strategy) - rust-lang#96744 (Implement [OsStr]::join) - rust-lang#96747 (Add `track_caller` to `DefId::expect_local()`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
      
     Merged
  
    
  matthiaskrgr 
      added a commit
        to matthiaskrgr/rust
      that referenced
      this pull request
    
      May 12, 2022 
    
    
      
  
    
      
    
  
…iddle Fix settings page CSS In rust-lang#96741, I moved the CSS loading outside of `settings.js`. The result was that on the settings page, there isn't the settings CSS anymore:  I also used this opportunity to remove unused CSS rules (we don't have `<select>` elements anymore in the settings). cc `@jsha` r? `@notriddle`
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      Labels
      
    A-rustdoc-js
  Area: Rustdoc's JS front-end 
  
    A-rustdoc-ui
  Area: Rustdoc UI (generated HTML) 
  
    S-waiting-on-bors
  Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 
  
    T-rustdoc
  Relevant to the rustdoc team, which will review and decide on the PR/issue. 
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
I learned about this thanks to @jsha who suggested this approach:
It improves the settings loading strategy by loading CSS and JS at the same time to prevent the style to be applied afterwards on slow connections.
r? @jsha